PEP-0263 and default encoding

John Roth newsgroups at jhrothjr.com
Mon Sep 29 19:48:29 EDT 2003


"News M Claveau /Hamster-P" <essai1 at mci.local> wrote in message
news:blaau5$b0r$1 at news-reader3.wanadoo.fr...
> Yes !  Why ?
>
>     And, me (french), i add  :
>             # -*- coding: cp1252 -*-
>     at begin of my scripts. But... and if i want do a script for two,
three,
> etc. languages ?
>
> or
>
>     How have  Ascii  AND  non-ascii  caracters in scripts ?
>
>
> * sorry for my bad english *

Use UTF-8. That's what it's there for.

Remember that the actual Python program has to be in
ASCII - only the text in string literals can be in different
character sets. I'm not sure about comments.

John Roth

>
>
> @-salutations
> -- 
> Michel Claveau
>
>
>
>






More information about the Python-list mailing list