Convertion of Unicode to ASCII NIGHTMARE
Fredrik Lundh
fredrik at pythonware.com
Wed Apr 5 08:25:51 EDT 2006
Roger Binns wrote:
> > fact or FUD? let's see:
>
> Note I said SQLite. For APIs that take/give strings, you can either
> supply/get a UTF-8 encoded sequence of bytes, or two bytes per character
> host byte order sequence. Any wrapper of SQLite that doesn't do
> Unicode in/out is seriously breaking things.
>
> I ended up using the UTF-8 versions of the API as Python can't quite
> make its mind up how to represent Unicode strings at the C api level.
> You can have two bytes per char or four, and the handling/production
> of byte order markers isn't that clear either.
sounds like your understanding of Unicode and Python's Unicode system
is a bit unclear.
</F>
More information about the Python-list
mailing list