R
robert
sys.stdout.encoding
'cp850'Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python25\Lib\encodings\cp850.py", line 12, in encode
return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode character
u'\u2013' in position
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: readonly attribute
is there a switch to suppress those encoding errors for standard
print's on the console - e.g. for getting automatic behavior like
'replace' :
or a new filter file class necessary?
'cp850'Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python25\Lib\encodings\cp850.py", line 12, in encode
return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode character
u'\u2013' in position
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: readonly attribute
is there a switch to suppress those encoding errors for standard
print's on the console - e.g. for getting automatic behavior like
'replace' :
or a new filter file class necessary?