- changed status to wontfix
UnicodeEncodeError with non ascii characters
Issue #166
wontfix
Using windows 7, console is set to "chcp 437". Dark.Souls.II.Digital.Extras-BAT
#!
SRR file created with pyReScene Auto 0.5.
Re-creating stored file: battery.nfo
Re-creating stored file: b-ds2dex.sfv
Re-creating RAR file: b-ds2dex.rar
Exception in thread Thread-1:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
self.run()
File "D:\pyReScene-HG\Gfy-pyrescene-4d4bcce5ed8a\rescene\srr.py", line 81, in
run
print(event.message)
File "C:\Python27\lib\encodings\cp437.py", line 12, in encode
return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode characters in position 44-45: c
haracter maps to <undefined>
'ascii' codec can't encode characters in position 213-214: ordinal not in range(
128)
Traceback (most recent call last):
File "D:\pyReScene-HG\Gfy-pyrescene-4d4bcce5ed8a\rescene\srr.py", line 602, in
main
parser.exit(manage_srr(options, infolder, infiles, working_dir))
File "D:\pyReScene-HG\Gfy-pyrescene-4d4bcce5ed8a\rescene\srr.py", line 316, in
manage_srr
options.volume is None, options.volume, rar_mt)
File "D:\pyReScene-HG\Gfy-pyrescene-4d4bcce5ed8a\rescene\main.py", line 1325,
in reconstruct
in_folder, hints, auto_locate_renamed)
File "D:\pyReScene-HG\Gfy-pyrescene-4d4bcce5ed8a\rescene\main.py", line 1714,
in get_rar_data_object
auto_locate_renamed))
File "D:\pyReScene-HG\Gfy-pyrescene-4d4bcce5ed8a\rescene\main.py", line 2026,
in compressed_rar_file_factory
nblock, followup_src, solid=False)
File "D:\pyReScene-HG\Gfy-pyrescene-4d4bcce5ed8a\rescene\main.py", line 2193,
in __init__
compress = subprocess.Popen(self.good_rar.full())
File "C:\Python27\lib\subprocess.py", line 710, in __init__
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 958, in _execute_child
startupinfo)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 213-214: o
rdinal not in range(128)
Unexpected Error: 'ascii' codec can't encode characters in position 213-214: ord
inal not in range(128)
Comments (1)
-
repo owner - Log in to comment
Try again with Python 3. I won't be fixing any UnicodeEncodeErrors when they are only in Python 2.