AW: [Zope] Python 1.5.2 and unicode

Florian Schuler florian.schuler@braunconsulting.de
Fri, 26 Oct 2001 11:31:34 +0200


Hello Oleg

great. You have to know taht I=B4am not good in python programming.My =
boss
said that I have to do sometfing with it.

My next question is about your tool.
The E-Mails I receive are stroed in a list / array.
eacht email line is one entry in my array.
But your tool supports only emails which are stored in a file. -->
according mimetools.Message.
Is it possible to use my array with this class. How :-))

Florian Schuler


-----Urspr=FCngliche Nachricht-----
Von: Oleg Broytmann [mailto:phd@phd.pp.ru]
Gesendet: Freitag, 26. Oktober 2001 10:30
An: Florian Schuler
Cc: Zope Mailingliste (E-Mail)
Betreff: Re: [Zope] Python 1.5.2 and unicode


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:
> =
=3D?ISO-8859-1?Q?AW=3D3A_=3D7B80/20/2=3D7D=3D5BOrganizer=3D5D_RE=3D3ARE"=
 and so on.
> ( Outlook creates that )
>=20
> 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.
--=20
     Oleg Broytmann            http://phd.pp.ru/
phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.

_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -=20
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )