headspace-cli icon indicating copy to clipboard operation
headspace-cli copied to clipboard

Unicode encode issue

Open naamex opened this issue 2 years ago • 1 comments

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.

naamex avatar Aug 25 '23 16:08 naamex

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.

anaemic avatar Sep 28 '23 20:09 anaemic