print(title.encode(sys.stdout.encoding, errors='replace').decode()) and python 2.7.13
Closed this issue · 2 comments
dan-and commented
Your #6 fix didn't work for python 2.7.13
print(title.encode(sys.stdout.encoding, errors='replace').decode()) does not work with python 2.7.13
results (sometimes) in:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 18: ordinal not in range(128)
Python 3.5 works fine.
arekstasiewicz commented
MediaWiki Administrators’ Tutorial Guide
will trigger the error (utf-8 character?)
ozzieperez commented
This should be fixed now. I merged the commit from @irzan2010
4e514c4#diff-236012c1e2500a3dc7ae7ca0a6dcd51e
Thanks for the test case @arekstasiewicz and @dan-and for reporting it