[issue8988] import + coding = failure (3.1.2/win32)

Amaury Forgeot d'Arc report at bugs.python.org
Sat Jun 26 14:56:23 CEST 2010


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

> File "F:\1home\С\u201e\a.py", line 1, in <module>
> And what the hell is this u201e? That should have been a letter!

It's probably this symbol: http://www.eki.ee/letter/chardata.cgi?ucode=201e
but it has no representation in the console windows you are using; try "import sys; print(sys.stderr.encoding)" to print the code page used by your console.
In error messages, Python replaces unpritable characters with their "escaped" form: \uXXXX where XXXX is the character number.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8988>
_______________________________________


More information about the Python-bugs-list mailing list