"%s" vs unicode

Gerd Woetzel woetzel at gmd.de
Wed Jan 8 16:01:45 CET 2003

martin at v.loewis.de (Martin v. Loewis) writes:

>It follows the general principle that, when combining byte strings and
>Unicode strings, the byte string will be converted to Unicode, not
>vice versa.

Unfortunately the "general principle" is wrong.
There is a canonical embedding of Unicode strings into byte strings (which
is UTF-8) but no canonical embedding of byte strings into Unicode strings.
Hence it should be vice versa.

Its a real shame that I have no acces to the bvd's time machine :-)


More information about the Python-list mailing list