"morphex" <[EMAIL PROTECTED]> wrote:

> """
> Date: Mon, 7 Nov 2005 11:38:29 -0700 (MST)
> Message-Id: <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED], [EMAIL PROTECTED]
> From: [EMAIL PROTECTED]
> Subject:  Order confirmation
> Content-Type: text/plain; charset="utf-8"
> X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.92.8
>
> Thank you for your order, it is copied here for your convenience, and
> we will process it shortly.
>
> Name:  ø
> Phone: ø
> Email:  [EMAIL PROTECTED]
> Comments:  asdf
> """

that's 0xC3 0xB8 (at least according to my mail reader), which, translated
back from UTF-8, looks like a typically norsk character to me...

>>> name = "\xc3\xb8".decode("utf-8")

>>> print name
ø

>>> import unicodedata
>>> unicodedata.name(name)
'LATIN SMALL LETTER O WITH STROKE'

try adding a "Mime-Version: 1.0" header to your mail.

a "Content-Transfer-Encoding: 8bit" might not hurt either (or run the body 
through
quopri.encodestring() after you've encoded it, and use 
"Content-Transfer-Encoding:
quoted-printable").

(also check the email package: http://docs.python.org/lib/module-email.html )

</F> 



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to