How do you "just print" a list containing unicode in Python3?
In Python2.*, I could simply do:
text = ['\u2014']
print(text)
But in Python3, this fails with the notorious error:
UnicodeEncodeError: 'ascii' codec can't encode character '\u2014' in position 2: ordinal not in range(128)
Unfortunately, the normal recommendations to use str() fail because this only works with bytes in Python3, not lists:
>>> print(str(text, encoding='utf-8', errors='ignore'))
TypeError: coercing to str: need a bytes-like object, list found
PYTHONIOENCODING=:backslashreplace.