When I try to print a Unicode string in a Windows console, I get a UnicodeEncodeError: \'charmap\' codec can\'t encode character .... error. I assume this is b
UnicodeEncodeError: \'charmap\' codec can\'t encode character ....
For Python 2 try:
print unicode(string, 'unicode-escape')
For Python 3 try:
import os string = "002 Could've Would've Should've" os.system('echo ' + string)
Or try win-unicode-console:
pip install win-unicode-console py -mrun your_script.py