[Ipython-tickets] [IPython] #239: ipython does not properly handle encodings

IPython ipython-tickets@scipy....
Sun Mar 23 06:23:37 CDT 2008


#239: ipython does not properly handle encodings
----------------------+-----------------------------------------------------
 Reporter:  asmodai   |       Owner:  fperez
     Type:  defect    |      Status:  new   
 Priority:  normal    |   Milestone:        
Component:  ipython   |     Version:        
 Severity:  critical  |    Keywords:        
----------------------+-----------------------------------------------------
 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
 愛
 }}}

-- 
Ticket URL: <http://ipython.scipy.org/ipython/ipython/ticket/239>
IPython <http://ipython.scipy.org>
The IPython interactive Python system


More information about the Ipython-tickets mailing list