Ticket #239 (new defect)

Opened 7 months ago

ipython does not properly handle encodings

Reported by: asmodai Assigned to: fperez
Priority: normal Milestone:
Component: ipython Version:
Severity: critical Keywords:
Cc:

Description

iPython mishandles unicode (based on ipython from trunk):

In [1]: print sys.stdin.encoding, sys.stdout.encoding
UTF-8 UTF-8

In [2]: test = u'愛'

In [3]: test
Out[3]: u'\xe6\x84\x9b'

In [4]: print test
æ

Compared to normal Python:

>>> print sys.stdin.encoding, sys.stdout.encoding
UTF-8 UTF-8

>>> test = u'愛'

>>> test
u'\u611b'

>>> print test
愛