Peter van Kampen added the comment:

Attached is msg_15.txt encoded in utf-8.
>>> f = codecs.open('Lib/email/test/data/msg_15.txt', 'r',
encoding='iso-8859-1')
>>> s = f.read()
>>> f.close()
>>> f = open('Lib/email/test/data/msg_15.txt','w')
>>> f.write(s)
>>> f.close()

$ ./python Lib/test/regrtest.py test_email
test_email
1 test OK.

----------
nosy: +pterk

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1086>
__________________________________
Return-Path: <[EMAIL PROTECTED]>
Received: from fepD.post.tele.dk (195.41.46.149) by mail.groupcare.dk (LSMTP 
for Windows NT v1.1b) with SMTP id <[EMAIL PROTECTED]>; Mon, 30 Apr 2001 
12:17:50 +0200
User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2106
Subject: XX
From: [EMAIL PROTECTED]
To: XX
Message-ID: <xxxx>
Mime-version: 1.0
Content-type: multipart/mixed;
   boundary="MS_Mac_OE_3071477847_720252_MIME_Part"

> Denne meddelelse er i MIME-format. Da dit postl¾sningsprogram ikke forstŒr 
> dette format, kan del af eller hele meddelelsen v¾re ul¾selig.

--MS_Mac_OE_3071477847_720252_MIME_Part
Content-type: multipart/alternative;
   boundary="MS_Mac_OE_3071477847_720252_MIME_Part"


--MS_Mac_OE_3071477847_720252_MIME_Part
Content-type: text/plain; charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable

Some removed test. 

--MS_Mac_OE_3071477847_720252_MIME_Part
Content-type: text/html; charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable

<HTML>
<HEAD>
<TITLE>Some removed HTML</TITLE>
</HEAD>
<BODY>
Some removed text.
</BODY>
</HTML>


--MS_Mac_OE_3071477847_720252_MIME_Part--


--MS_Mac_OE_3071477847_720252_MIME_Part
Content-type: image/gif; name="xx.gif";
 x-mac-creator="6F676C65";
 x-mac-type="47494666"
Content-disposition: attachment
Content-transfer-encoding: base64

Some removed base64 encoded chars.

--MS_Mac_OE_3071477847_720252_MIME_Part--

_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to