apple-notes-to-sqlite
apple-notes-to-sqlite copied to clipboard
Character encoding problem
I ran against a recent note with this in it:
Or just "Actions ⚙️ "
And got back:

Actions ⚙️
Pasting that into https://ftfy.vercel.app/?s=Actions+%E2%80%9A%C3%B6%C3%B4%C3%94%E2%88%8F%C3%A8+ gives this:
s = 'Actions â\x80\x9aöôÃ\x94â\x88\x8fè'
s = s.encode('latin-1')
s = s.decode('utf-8')
s = s.encode('macroman')
s = s.decode('utf-8')
print(s)

I'm experiencing something similar. My apostrophes (') turn into (’) and the output is truncated. Hoping to debug next weekend
Just changing the encoding in extract_notes
to utf8
seems to fix it for my titles that were messed up.