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

"Martin v. Löwis" martin at
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.


More information about the Python-list mailing list