Skip to content

charmap codec cant decode byte 0x90.. #1

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

Open
jstodda opened this issue May 26, 2020 · 1 comment
Open

charmap codec cant decode byte 0x90.. #1

jstodda opened this issue May 26, 2020 · 1 comment

Comments

@jstodda
Copy link

jstodda commented May 26, 2020

Believe there is a unicode issue when rendering the thread from the JSON format to HTML (attempted).
Using Python 3 vs 2 (apparently introduced the issue)

The download worked perfectly but getting this error after the render to HTML attempt.

C:\Users\stars\Python\Groupme>python render_chat.py -i TheFam
Traceback (most recent call last):
File "render_chat.py", line 371, in
main()
File "render_chat.py", line 313, in main
messages = json.load(fp)
File "C:\Users\stars\AppData\Local\Programs\Python\Python38-32\lib\json_init_.py", line 293, in load
return loads(fp.read(),
File "C:\Users\stars\AppData\Local\Programs\Python\Python38-32\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 42250: character maps to

Open to an edit that would encode to UTF or other format to avoid the error. Thanks!

@rarmocida
Copy link

I am a total noob to coding, but I was finally able to work my way through all of it and then I also got this error. At least I know I'm doing something right I guess. Is there any way to get it to render as I really like how it looked as you showed in screenshots?

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