(Fucking) Unicode: console print statement and PythonWin: replacement for off-table chars HOWTO?
gregarican
greg.kujawa at gmail.com
Tue Jan 10 14:39:25 EST 2006
Robert wrote:
> (windows or linux console)
>
>
>
> >>> print u'\u034a'
>
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "C:\PYTHON23\lib\encodings\cp850.py", line 18, in encode
> return codecs.charmap_encode(input,errors,encoding_map)
> UnicodeEncodeError: 'charmap' codec can't encode character u'\u034a' in
> position
> 0: character maps to <undefined>
Are you certain that this is a valid unicode character? Checking other
values (like \u0020 which is a blank space) seems to work okay. What
does \u034A represent?
More information about the Python-list
mailing list