[Zope] Python 1.5.2 and unicode

Oleg Broytmann Oleg Broytmann <phd@phd.pp.ru>
Fri, 26 Oct 2001 12:29:43 +0400

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:


     Oleg Broytmann            http://phd.pp.ru/            phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.