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

Unicode encode issue #26

Open
naamex opened this issue Aug 25, 2023 · 1 comment
Open

Unicode encode issue #26

naamex opened this issue Aug 25, 2023 · 1 comment

Comments

@naamex
Copy link

naamex commented Aug 25, 2023

Hello,

I'm having an error while executing the code.

UnicodeEncodeError: 'latin-1' codec can't encode character '\u20ac' in position 513: ordinal not in range(256)

Could you please assist me in resolving this issue?

Thank you.

@anaemic
Copy link

anaemic commented Sep 28, 2023

I had this same issue and performed the hackiest, most terrible solution but it worked.

That error leads me to the file "/usr/lib/python3.11/http/client.py" line 1259 where by changing the string one_value.encode('latin-1') to one_value.encode('UTF-8') and saving the file you can run headspace downloader just fine and get your files, albeit with a slightly borked interface.

I immediately undid the change afterwards and recommend you do too.

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

2 participants