unicode converting
Maxim Kasimov
kasimov at i.com.ua
Wed Mar 16 07:05:27 EST 2005
Serge Orlov wrote:
>
> utf-16 is basically a superset of ucs-2. See here for more detail:
> http://www.azillionmonkeys.com/qed/unicode.html
> If you ensure that ord() of each output character is < 0x10000
> you'll get valid ucs-2 output if you use utf-16 encoding. If you
> build python with --enable-unicode=ucs2 no character can be >= 0x10000
> so you don't have to check.
>
thank you very match! that's exactly what i need
--
Best regards,
Maxim
More information about the Python-list
mailing list