problems with mimify.mime_encode_header
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Thu Jun 29 14:53:02 EDT 2006
In <mailman.7617.1151590377.27775.python-list at python.org>, Egor Duda
wrote:
> #!/usr/bin/python
> # -*- coding: utf-8 -*-
>
> import mimify
>
> mimify.CHARSET = 'utf-8'
>
> print mimify.mime_encode_header('Subject: тест а.\n');
>
> Тhe output is:
> Subject: =?utf-8?Q?=D1=82=D0=B5=D1=81=D1=82?= а.
>
> Please note that the last character (before dot) is not quoted, and
> resulting string is not 8bit clean.
Why should a simple ASCII 'a' be quoted? And what do you mean by "not
8bit clean"? The string is even 7-bit clean!
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list