[New-bugs-announce] [issue3648] 'ascii' shoud be range(256) or just set another default encoding

electronixtar report at bugs.python.org
Fri Aug 22 16:14:10 CEST 2008


New submission from electronixtar <electronicstar at 126.com>:

One of the MOST common scene for Python developers on CJK/Widecharacter 
is this error:

'ascii' codec can't decode byte 0xe5 in position 0: ordinal not in range
(128)


Why cann't Python just define ascii to range(256), or alternatively, 
just use another default encoding that handles 0x00 to 0xff. Sometimes 
encoding problems in Python are driving me mad.

Currently I am using mbcs, but it's only available on Windows.

----------
components: Interpreter Core
messages: 71747
nosy: electronixtar
severity: normal
status: open
title: 'ascii' shoud be range(256) or just set another default encoding
type: behavior
versions: Python 2.5

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


More information about the New-bugs-announce mailing list