UnicodeEncodeError: 'charmap' codec can't encode character '\u2019' in position 23: c - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: UnicodeEncodeError: 'charmap' codec can't encode character '\u2019' in position 23: c (/thread-15360.html) |
UnicodeEncodeError: 'charmap' codec can't encode character '\u2019' in position 23: c - kapilan15 - Jan-14-2019 I try to run my code in cmd command. It ran few lines of my code and gave some en code error. I posted the output below. Does anyone know why this happens? Thanks in advance.
RE: UnicodeEncodeError: 'charmap' codec can't encode character '\u2019' in position 23: c - snippsat - Jan-14-2019 Quote:Does anyone know why this happens?How could we know You need to post ecb try 3.py .
RE: UnicodeEncodeError: 'charmap' codec can't encode character '\u2019' in position 23: c - Gribouillis - Jan-14-2019 Obviously there is a problem with a string that the colorama module is unable to print because of en encoding issue. You could print the repr of this string, so we could look at this with colorama. Try to print the repr(" ".join(colored_words)) at line 51 in ecb try 3.py and post the result here.
|