email with a non-ascii charset in Python3 ?

MRAB python at mrabarnett.plus.com
Wed Aug 15 12:57:47 EDT 2012


On 15/08/2012 13:16, Helmut Jarausch wrote:
> Hi,
>
> I'm sorry to ask such a FAQ but still I couldn't find an answer - neither in the docs nor the web.
>
> What's wrong with the following script?
>
> Many thanks for a hint,
> Helmut.
>
> #!/usr/bin/python3
> #_*_ coding: latin1 _*_
>
Aw well as the other replies, the "coding" line should be:

#-*- coding: latin1 -*-




More information about the Python-list mailing list