[Tutor] Encoding
Giorgio
anothernetfellow at gmail.com
Sun Mar 7 13:23:12 CET 2010
2010/3/7 spir <denis.spir at gmail.com>
>
> > Oh, right. And, if i'm not wrong B is an UTF8 string decoded to unicode
> (due
> > to the coding: statement at the top of the file) and re-encoded to latin1
>
> Si! :-)
>
Ahah. Ok, Grazie!
One more question: Amazon SimpleDB only accepts UTF8.
So, let's say i have to put into an image file:
filestream = file.read()
filetoput = filestream.encode('utf-8')
Do you think this is ok?
Oh, of course everything url-encoded then
Giorgio
>
> Denis
> --
> ________________________________
>
> la vita e estrany
>
> spir.wikidot.com
>
>
--
--
AnotherNetFellow
Email: anothernetfellow at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100307/b46b7c82/attachment.html>
More information about the Tutor
mailing list