Skip to content

Commit fb12840

Browse files
authored
Update Unicode.rst
1 parent c99bf83 commit fb12840

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Unicode.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Using non-English characters
22
============================
3-
Expyriment has full `unicode support <http://docs.python.org/2/howto/unicode.html>`_.
3+
Expyriment has full `unicode support <http://docs.python.org/3/howto/unicode.html>`_.
44
This means that, in principle, non-English characters (such as umlaut, accent,
55
special character) can be used in strings throughout the library. Two
66
different forms of using non-English characters have to be dissociated.
@@ -10,9 +10,8 @@ Non-English characters in strings in the Expyriment script file
1010
When attempting to use non-English characters in strings in your Expyriment
1111
script file, the following three conditions have to be met:
1212

13-
1. **Only use non-English characters in unicode strings (Python 2 only)!**
14-
For example: Use ``u"Überexperiment"`` instead of ``"Überexperiment"``.
15-
(In Python 3 you can use normal strings, as they are already unicode compatible.)
13+
1. **Only use non-English characters in normal strings (and not byte string)!**
14+
For example: Use ``"Überexperiment"`` instead of ``b"Überexperiment"``.
1615

1716
2. **Know the encoding used by your editor!**
1817
For example: IDLE will automatically suggest to save in utf-8 encoding when
@@ -24,7 +23,7 @@ script file, the following three conditions have to be met:
2423

2524
# -*- coding: utf-8 -*-
2625
27-
(In Python 3, you can skip this, if and only if you use utf-8 encoding.)
26+
(You can skip this, if and only if you use utf-8 encoding.)
2827

2928
Non-English characters in other text files (e.g. stimuli lists)
3029
---------------------------------------------------------------

0 commit comments

Comments
 (0)