hwchase17 / notion-qa

MIT License
2.13k stars 376 forks source link

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

Open DanielThaumazo opened 1 year ago

DanielThaumazo commented 1 year ago

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.