unicode experiments + questions

Martin v. Loewis martin at v.loewis.de
Thu Mar 28 05:02:19 EST 2002


"Irmen de Jong" <irmen at NOSPAMREMOVETHISxs4all.nl> writes:

> See the other posting... PythonWin does strange things when printing unicode
> directly??

Without checking, I'd say it doesn't do "strange things" - it just
does the right thing, printing the Unicode object as-is (without
converting it to a byte string first). Perhaps it does convert it to
the "mbcs" encoding before passing it to the Window API - but it might
even use the Unicode variant of the Windows API, which allows direct
output of Unicode strings. You could find out by printing a string
that has characters which are not supported in windows-1252
(e.g. GREEK SMALL LETTER ALPHA).

Regards,
Martin




More information about the Python-list mailing list