-
-
Notifications
You must be signed in to change notification settings - Fork 8
Description
When I ran the command 'python generate.py' I got the error:
"UnicodeEncodeError: 'charmap' codec can't encode character '\xf6' in position 5670: character maps to "
I tried to understand why the UnicodeEncodeError occurs. I think it happen when the program encounters a Unicode character that cannot be encoded in the target encoding. In this case, it occurred when trying to generate files for GitHub organizations with non-ASCII characters in their names. To investigate, the program I prints out the name of the problematic organization, and we need to check if it contains non-ASCII characters.
UnicodeEncodeError occurred for organization: ELTE cnl
Processing organization: ELTE cnl (id: eltecnl)
UnicodeEncodeError occurred for organization: ELTE fi
Processing organization: ELTE fi (id: elte-fi)
UnicodeEncodeError occurred for organization: ELTE vo
Processing organization: ELTE vo (id: eltevo)
UnicodeEncodeError occurred for organization: Google
Processing organization: Google (id: google)
UnicodeEncodeError occurred for organization: gwdg
Processing organization: gwdg (id: gwdg)
UnicodeEncodeError occurred for organization: Institut fֳ¼r Informatik
Processing organization: Institut fֳ¼r Informatik (id: fubinf)
UnicodeEncodeError occurred for organization: Keller lab
Processing organization: Keller lab (id: bkellerlab)
UnicodeEncodeError occurred for organization: NuiLab
Processing organization: NuiLab (id: nuilab)
UnicodeEncodeError occurred for organization: Twitter
Processing organization: Twitter (id: twitter)
UnicodeEncodeError occurred for organization: Vֳ₪stra Gֳ¶talandsregionen
Processing organization: Vֳ₪stra Gֳ¶talandsregionen (id: vastra-gotalandsregionen)
(venv)
I'm not entirely sure why Google for example shows up and Twitter but that's the most I could figure out.