Python encoding ISO to UTF8
Posted
by PanosJee
on Stack Overflow
See other posts from Stack Overflow
or by PanosJee
Published on 2010-04-27T16:55:07Z
Indexed on
2010/04/27
17:03 UTC
Read the original article
Hit count: 423
Hello everyone, I am trying to read my emails using a Python script (Python 2.5 and PyPy) Some of my results are not in ASCII and i get strings like this:
=?ISO-8859-7?B?0OXm7/Dv8d/hIPP07+0gyuno4enx/u3h?='
Is there any way to decode it and convert to utf-8 so that i can process it? I tried .decode('ISO-8859-7') but i got the same string
© Stack Overflow or respective owner