Comparing UTF-8 into USC-2 and vice versa (newbie :-) )

"Martin v. Löwis" martin at v.loewis.de
Sun Jun 17 19:56:08 CEST 2007


Tzury schrieb:
> Yet,
> 'utf_16_be' is not 'ucs-2'.

That's not true. They are virtually identical.

> How would I get ucs-2 encoding and decoding functionality with python?

Use the UTF-16 codec.

Regards,
Martin




More information about the Python-list mailing list