Unicode error with ado in win 32
Neo
neo at thezion.net
Wed Feb 21 17:47:20 EST 2001
Thanks!
This method work properly but only if you have a like a string.
Unfortunally i've mistake the pointer aritmetics.
Writing
a=rs.fields("azienda")
return a pointer to rs.fields("azienda") that is not useful to work like
string.
Also writing
a=rs.fields("azienda").value
return a string that is simply encodable.
Tnx 4 all ^_^
--
Neo
****************************
Follow the White Rabbit...
Knock Knock Neo...
www.thezion.net
****************************
> # always works, but may not look right
> print a.encode("utf-8")
>
> # replace non-ascii with "?"
> print a.encode("ascii", "replace")
>
> # skip non-ascii characters
> print a.encode("ascii", "ignore")
>
> # latin-1 (western europe)
> print a.encode("latin-1", "replace")
>
> Cheers /F
>
More information about the Python-list
mailing list