[IPython-dev] String encoding
Fri Jun 17 14:54:44 CDT 2011
On 17 June 2011 18:54, Jörgen Stenarson <email@example.com>wrote:
> I think the most annoying thing will be when trying to reevaluate a repr of
> some string object that happens to contain non-ascii characters, I do not
> know how often that happens.
As far as I know, the repr never displays those characters in a byte string
- it always uses the '\xe9' notation, which should work with no problems.
> I guess we will see how many questions/"bugs reports" we get about this,
> because alternative 1 is different from how the regular prompt works.
Unfortunately, both alternatives are different from how the pure Python
prompt works, at least for some users (e.g. with cp850, neither alternative
will work for both unicode and bytes literals). The Python interactive shell
must be able to call the parser in a way that's not exposed to pure Python
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev