utf-8 in interactive python session

L

Luke

Python doesn't seem to read UTF-8 properly from an interactive
session. Am I doing something wrong?

luked@sor ~ $ echo $LANG
en_AU.UTF-8
luked@sor ~ $ python
Python 2.3.4 (#1, Aug 12 2004, 17:23:54)
[GCC 3.4.1 (Gentoo Linux 3.4.1, ssp-3.4-2, pie-8.7.6.3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.google groups news client), should return u'\u03c0'
u'\xcf\x80'
 
G

Guest

The problem is fixed in Python 2.4a2 and its later versions.
Please try one of them. :)

Hye-Shik

Python doesn't seem to read UTF-8 properly from an interactive
session. Am I doing something wrong?

luked@sor ~ $ echo $LANG
en_AU.UTF-8
luked@sor ~ $ python
Python 2.3.4 (#1, Aug 12 2004, 17:23:54)
[GCC 3.4.1 (Gentoo Linux 3.4.1, ssp-3.4-2, pie-8.7.6.3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.google groups news client), should return u'\u03c0'
u'\xcf\x80'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top