Merge "Use surrogateescape with outfilter.py"
This commit is contained in:
commit
29230d74c5
@ -78,7 +78,8 @@ def main():
|
|||||||
if sys.version_info < (3,):
|
if sys.version_info < (3,):
|
||||||
outfile.write(ts_line)
|
outfile.write(ts_line)
|
||||||
else:
|
else:
|
||||||
outfile.write(ts_line.encode('utf-8'))
|
outfile.write(
|
||||||
|
ts_line.encode('utf-8', errors='surrogateescape'))
|
||||||
outfile.flush()
|
outfile.flush()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user