[docs] [issue18870] eval() uses latin-1 to decode str
Antoine Pitrou
report at bugs.python.org
Wed Aug 28 22:24:39 CEST 2013
Antoine Pitrou added the comment:
$ python
Python 2.7.4 (default, Apr 19 2013, 18:28:01)
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> eval("u'ä'")
u'\xc3\xa4'
>>> import locale
>>> locale.getpreferredencoding()
'UTF-8'
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18870>
_______________________________________
More information about the docs
mailing list