[New-bugs-announce] [issue17110] sys.argv docs should explaining how to handle encoding issues

Nick Coghlan report at bugs.python.org
Sun Feb 3 05:01:11 CET 2013


New submission from Nick Coghlan:

The sys.argv docs [1] currently contain no mention of the fact that they are Unicode strings decoded from bytes provided by the OS. They also don't explain how to correct a decoding error by reversing Python's implicit conversion and redoing it based on the application's knowledge of the correct encoding, as described at [2]

[1] http://docs.python.org/3/library/sys#sys.argv
[2] http://stackoverflow.com/questions/6981594/sys-argv-as-bytes-in-python-3k/

----------
assignee: docs at python
components: Documentation, Unicode
messages: 181239
nosy: docs at python, ezio.melotti, ncoghlan
priority: normal
severity: normal
stage: needs patch
status: open
title: sys.argv docs should explaining how to handle encoding issues
type: enhancement
versions: Python 3.2, Python 3.3, Python 3.4

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


More information about the New-bugs-announce mailing list