Base64 encoding/decoding
Oliver Kurz
olku at web.de
Wed Mar 17 11:02:25 EST 2004
Hello,
I have a problem by converting a string to base64 and back again.
I have a string with german special chars like äöüß.
This string i convert with base64str=base64.encode('äöüß') into a base64 representation.
Backwards I got an error:
binascii.Error: Incorrect padding
I use base64.decode(base64str).
The charset I use is iso-iso-8859-1.
What am I doing wrong?
Is there somewhere a good tutorial bei encoding and decoding with different charsets?
I get text from different sources and i have to decode it and convert it at the end to utf-8.
--
--
Oliver Kurz
More information about the Python-list
mailing list