[IPython-dev] can't %edit python statement inclued non-ascii charset
tocer
tocer.deng@gmail....
Wed Mar 12 04:46:56 CDT 2008
hi:
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
thanks.
--tocer
More information about the IPython-dev
mailing list