I'm trying to start a script, but I have run in to a problem. [ERROR] 'charmap' codec can't encode character '\u300b' in position 11: character maps to
Asked
Active
Viewed 519 times
0
-
Hey there, welcome to StackOverflow. While we understand that you're trying to decode some string in Python, we don't really know what you're doing in code and can only guess what's going on. Please provide a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example). – Jack Avante Mar 13 '22 at 21:55
1 Answers
0
Your code is printing something that is unreadable for the machine. Try changing the output encoding to "utf-8" or just use code below at the very first lines of your code:
import sys
sys.stdin.reconfigure(encoding='utf-8')
sys.stdout.reconfigure(encoding='utf-8')

TheFaultInOurStars
- 3,464
- 1
- 8
- 29