[IPython-dev] can't %edit python statement inclued non-ascii charset

tocer tocer.deng at gmail.com
Wed Mar 12 05:46:56 EDT 2008


I typed a python statement inclued non_ascii charset,such as:

In [1] : s = '你好'   # it's a Chinses string

when I wanted to edit the statement again by typing edit command:

In [2]: edit In[1]

a error occured:

UnicodeEncodeError: 'ascii' codec can't encode characters in
position 5-6: ordinal not in range(128)

how could I make the mistake disapper.

btw:my box is ubuntu7.04, python2.5, ipython8.2



More information about the IPython-dev mailing list