adodbapi / string encoding problem
Achim Domma
domma at procoders.net
Thu Sep 25 07:52:42 EDT 2003
Hi,
I read a webpage via urllib2. The result of the 'read' call is of type
'str'. This string can be written to disc via
file('out.html','w').write(html). Then I write the string into a Memofield
in an Access database, using adodbapi. If I read the text back I get a
unicode string, which can not written to disc via file(...) due to encoding
problems. How do I have to decode the unicode string to get my original data
back?
regards,
Achim
More information about the Python-list
mailing list