Python3 default uses unicode but I can not seem to use accented characters and other non-ASCII characters.
From Aterm:
tc@box:~$ echo $LANG
it_IT.UTF-8
From the interpreter:
tc@box:~$ python3
Python 3.2.2 (default, Jan 26 2012, 20:36:39)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys; print(sys.stdout.encoding)
ANSI_X3.4-1968
>>> print (à)
File "<stdin>", line 0
^
SyntaxError: 'ascii' codec can't decode byte 0xe0 in position 7: ordinal not in range(128)
>>>
trying to start source.py
tc@box:~$ python3 ./stressed.py
Traceback (most recent call last):
File "./stressed.py", line 1, in <module>
print("this is a stressed character: \xe0")
UnicodeEncodeError: 'ascii' codec can't encode character '\xe0' in position 30: ordinal not in range(128)
tc@box:~$ [\code]