Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python generate.py -> UnicodeEncodeError ( ran the generate on Windows in git-bash ) #79

Open
ranms25 opened this issue May 4, 2023 · 0 comments

Comments

@ranms25
Copy link
Contributor

ranms25 commented May 4, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant