WTF? Printing unicode strings
John Salerno
johnjsal at NOSPAMgmail.com
Fri May 19 10:32:17 EDT 2006
Fredrik Lundh wrote:
> Ron Garret wrote:
>
>>>>> u'\xbd'
>> u'\xbd'
>>>>> print _
>> Traceback (most recent call last):
>> File "<stdin>", line 1, in ?
>> UnicodeEncodeError: 'ascii' codec can't encode character u'\xbd' in
>> position 0: ordinal not in range(128)
>
> so stdout on your machine is ascii, and you don't understand why you
> cannot print a non-ascii unicode character to it? wtf?
>
> </F>
>
AFAIK, I'm all ASCII (at least, I never made explicit changes to the
default Python install), so how am I able to print out the character?
More information about the Python-list
mailing list