Skip to content

Instantly share code, notes, and snippets.

@jarek-przygodzki
Last active November 6, 2023 15:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarek-przygodzki/af710d93406d9f5efb3a91ba0df1e51e to your computer and use it in GitHub Desktop.
Save jarek-przygodzki/af710d93406d9f5efb3a91ba0df1e51e to your computer and use it in GitHub Desktop.
Windows - python 3 UnicodeEncodeError: 'charmap' codec can't encode character '\u2013' in position 9629: character maps to <undefined>

If you to run into this problem change the console encoder to utf-8 before starting python

chcp 65001
set PYTHONIOENCODING=utf-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment