1.5.2, COM, Unicode

Martin von Loewis loewis at informatik.hu-berlin.de
Tue Jun 12 13:31:49 EDT 2001


grante at visi.com (Grant Edwards) writes:

> I'm pretty sure I got e-mails like that before, and I was
> wondering what the COM support library did with them in 1.5.2.
> Were all of the Unicode strings in COM objects automagically
> converted in to latin-1 encoding?

No, the old COM integration library had defined its own custom Unicode
type, which is now superceded by the standard Python type. The old
Unicode type had a default conversion to MBCS, AFAIK, whereas the
Python type's default conversion goes to ASCII.

Regards,
Martin



More information about the Python-list mailing list