Skip to content

charmap codec cant decode byte 0x90.. #1

@jstodda

Description

@jstodda

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions