How to decode a string
Fredrik Lundh
fredrik at pythonware.com
Tue Aug 22 09:53:46 EDT 2006
"Lad" wrote:
> The result of print "*", repr(RealName), type(RealName), "*" is
>
> * 'Fritschov\xe1 Laura' <type 'str'> *
looks like the MySQL interface is returning 8-bit strings using ISO-8859-1
encoding (or some variation of that; \xE1 is "LATIN SMALL LETTER A
WITH ACUTE" in 8859-1).
have you tried passing "use_unicode=True" to the connect() call ?
</F>
More information about the Python-list
mailing list