[docs] [issue17110] sys.argv docs should explaining how to handle encoding issues

Sreepriya Chalakkal report at bugs.python.org
Sat Mar 15 20:12:56 CET 2014


Sreepriya Chalakkal added the comment:

I tried running with Python 3.4 the following code

import sys

print(sys.argv[1])
print(b'bytes')

And I ran as follows trying to run with a different encoding. 
$ python ~/a.py `echo priya|iconv -t latin1`
priya
bytes

There was no unicode encode error generated! Is it because the problem is fixed?

----------
nosy: +sreepriya

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17110>
_______________________________________


More information about the docs mailing list