[Tutor] unicode ordinals to/from utf8

Kent Johnson kent37 at tds.net
Sat Dec 26 23:31:13 CET 2009


On Sat, Dec 26, 2009 at 10:41 AM, spir <denis.spir at free.fr> wrote:
> OK, I'll answer myself ;-)
> Found needed information at http://www1.tip.nl/~t876506/utf8tbl.html
> See below new version,

I'm not at all sure what you are trying to do here. Is it more than
conversion between unicode and utf-8? It looks like you have written
your own utf-8 codec. Why don't you use str.decode() and
unicode.encode()?

Kent


More information about the Tutor mailing list