Possible Unicode Bug in Pythonwin on version 2.2.2 ?
vincent wehren
v.wehren at home.nl
Wed Feb 12 14:09:08 EST 2003
"Chris Lyon" <chris.lyon at spritenote.co.uk> schrieb im Newsbeitrag
news:d232c5e.0302121048.5033368c at posting.google.com...
> In the interactive window type:-
> s=u'La Pe\xf1a Colada'
>
> print s
>
> removes the last 'a' on Colada,
Actually, I would expect an UnicodeError
OTOH:
>>> print s.encode("cp1252")
La Peña Colada
Regards
Vincent
>
> However trying this on Idle works as expected.
>
> Please suggest some suitably humbling punishment if once again I have
> missed the blindingly obvious or have a feature entirely devoted to my
> laptop.
>
> Chris
More information about the Python-list
mailing list