0

I'm trying to read (and later write) the .db files in which FSIV saves marked images etc. (stored at `C:\Users\My Name\AppData\Roaming\FastStone\FSIV` with Python.


The files clearly say TinyDB 2.0 at the top but when I try to open those files with Python (3.10) using TinyDB I get one of those errors (depending on file & encoding used):

UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 2882: character maps to <undefined>

or

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I tried to set the encodings listet here (for Python 3.7) in ...\tinydb\storages.py (Line 83) but none worked.

Where can I find more possible encodings to try or does somebody know which encoding FastStone Image Viewer uses?
Or does it use some custom encoding?

Thanks in advance!

gilex
  • 111
  • 4

0 Answers0