"Gerhard Fiedler" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]

> If I understand you correctly, you are saying that if I distribute a file
> with the following lines:
>
>  s = "é"
>  print s
>
> I basically need to distribute also the information how the file is encoded
> and every user needs to use the same (or a compatible) encoding for reading
> this file?
>
> Is there a standard way to do this?

Use Unicode strings, with an explicit encoding.  Say no to ISO-8859-1 centrism.
See: http://www.amk.ca/python/howto/unicode particularly the
"Unicode Literals in Python Source Code" section. 


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

Reply via email to