Hello List, I have a big problem ! I wrote a script to parse emails. Ok that works fine. But sometimes there are emails with a "subject: =?ISO-8859-1?Q?AW=3A_=7B80/20/2=7D=5BOrganizer=5D_RE=3ARE" and so on. ( Outlook creates that ) I think it is in unicode. Does someone of you know how to parse this string so, that the ASCII expressions changed into chars for example =7B => { or =7D => } ... I´ve read that python 2.1 supports unicode. But I don´t want to install it. Is there a possibility to do that in Python 1.5.x ? Thnaks in advance Florian Schuler
On Fri, Oct 26, 2001 at 10:17:44AM +0200, Florian Schuler wrote:
I have a big problem ! I wrote a script to parse emails. Ok that works fine. But sometimes there are emails with a "subject: =?ISO-8859-1?Q?AW=3A_=7B80/20/2=7D=5BOrganizer=5D_RE=3ARE" and so on. ( Outlook creates that )
I think it is in unicode. Does someone of you know how to parse this string so, that the ASCII expressions changed into chars
This is not Unicode, this is quoting according to RFC2047. You can find code to decode in my mimedecode.py program: http://phd.pp.ru/Software/Python/#mimedecode Oleg. -- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
participants (2)
-
Florian Schuler -
Oleg Broytmann