Skip to content

Has the API changed? #2

Description

@oss-vineet

After using python decode-ColorNote.py -p xxxx c:\folder my file decodes perfectly fine, as evident from the notes.bin file but I still get UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf7 in position 1939: invalid start byte.

Now my notes are in multiple languages but opening notes.bin in Notepad++ and setting it to UTF-8 shows that they translate well and without any problem. But in between the notes, there are characters like \x0\x0\x0\x2\x0\x0\x1\xF7\x0\x0\x2\xA0 and this is where the problem is coming from.

I tried setting json_chunk = json.loads(chunk.decode("utf-8", "ignore")) but that just leads to json.decoder.JSONDecodeError: Extra data: line 1 column 7 (char 6) since the decoded file doesn't seem to be formatted in a proper JSON format. Any help would be appreciated

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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