Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Adam Funk Newsgroups: comp.lang.python Subject: Re: writing an email.message.Message in UTF-8 Date: Tue, 08 Dec 2015 09:35:56 +0000 Organization: $CABAL Lines: 18 Message-ID: References: X-Trace: individual.net 25HAm7uTzGcUPLvc4xF1XQwwGyqBmkm2hRcRkIsg7Q9yFJMs0m X-Orig-Path: news.ducksburg.com!not-for-mail Cancel-Lock: sha1:p422UZvyNsgREKCU/MobR45H05w= sha1:MJSNb7xxQyqZe7Qr2tT05ta+gGM= User-Agent: slrn/pre1.0.3-5 (Linux) Xref: csiph.com comp.lang.python:100144 On 2015-12-07, Terry Reedy wrote: > On 12/7/2015 9:57 AM, Adam Funk wrote: >> I'm trying to write an instance of email.message.Message, whose body >> contains unicode characters, to a UTF-8 file. (Python 2.7.3 & 2.7.10 >> again.) > > The email package was rewritten for, I believe, 3.3. I believe it > should handle unicode email encoded as utf-8 more easily. Actually it works in Python 3.2.3, & fortunately my program doesn't depend on anything that isn't available for python 3 yet. Thanks! -- Most Americans are too civilized to hang skulls from baskets, having been headhunters, of course, only as recently as Vietnam. --- Kinky Friedman