Unicode Newbie

Manuel Huesser sylphaleya at hta.fhz.ch
Tue Sep 9 16:20:09 CEST 2003


The unicode function implies that you only can use 2 ** 16 chars
(unichr supports only this range) but with a given encoding e.g.
unicode(",,,", "utf-8") i should be able to encode
up to 2** 31 chars.

"\xfc\x12\x12\x12\x12\x12\x12" is an example for a 7
byte utf-8 string. But on encoding i get the following
error:

UTF-8 decoding error: unsupported Unicode code range

Is there any possibility to do the job?

Manuel




More information about the Python-list mailing list