Re: Format strings
Josef Spillner <[email protected]> Wed, 30 Nov 2005 15:39:31 +0100
| Newsgroups | gmane.comp.python.internationalization |
|---|---|
| Message-ID | <[email protected]> |
El Lunes, 28. Noviembre 2005 20:46, Martin v. L=F6wis escribi=F3: > But it is encoded in utf-8! Why do you say it isn't? "be encoded in > UTF-8" is different from "be a Unicode string". Unicode strings are > a separate data type (different from byte strings). "UTF-8" is a > *byte* encoding, so an UTF-8 string is *not* a character string, > but a byte string. OK, sorry, my mistake. > There is an undocumented -U option which makes all string literals > Unicode strings. Please try this out - you will likely find that > your application breaks. See my other reply. It'd be helpful to have a chapter advertising this opti= on = for people to be able to prepare any necessary changes. Of course a = prerequisite would be that at least the basic included modules work with it. It could also serve as an invitation for people to help migrating the modul= es. Josef