encoding of sys.argv ?

Jiba jibalamy at free.fr
Mon Oct 23 07:05:04 EDT 2006


Hi all,

I am desperately searching for the encoding of sys.argv.

I use a Linux box, with French UTF-8 locales and an UTF-8 filesystem. sys.getdefaultencoding() is "ascii" and sys.getfilesystemencoding() is "utf-8". However, sys.argv is neither in ASCII (since I can pass French accentuated character), nor in UTF-8. It seems to be encoded in "latin-1", but why ?

Jiba



More information about the Python-list mailing list