hwchase17/notion-qa

Ingestion error (and solution): UnicodeDecodeError: 'charmap' codec can't decode byte

DanielThaumazo opened this issue · 0 comments

I received this error on a Windows 11 setup while trying to ingest exported notion files.

If anyone else gets this, you can modify ingest.py:
with open(p) as f:
to
with codecs.open(p, encoding='utf-8') as f:

(or whichever encoding you need) to solve things.