storizzi / notes-exporter

Export Apple Notes to html, plain text, Markdown (eg for Obsidian), PDF, and DOCX (word) including images / attachments
MIT License
48 stars 5 forks source link

htm and html files generated #7

Open chrisvanpatten opened 4 hours ago

chrisvanpatten commented 4 hours ago

I'm noticing that when I run the exporter, I am getting two versions of every note: one with the htm extension, and the other with html:

Screenshot 2024-10-10 at 13 17 59@2x

The files are mostly similar, however all of the .html files have mis-encoded "RIGHT SINGLE QUOTATION MARK" characters (Unicode codepoint U+2019). For example:

London.html: Screenshot 2024-10-10 at 13 20 11@2x

London.htm: Screenshot 2024-10-10 at 13 21 10@2x

I'm running macOS Sonoma (14.6.1), zsh 5.9, and miniconda for the Python dependencies (installed by the built-in script).

The txt file exports do not seem to have this issue.

(EDIT: Also, thank you for this wonderful tool. It's great to have peace of mind that, should Apple Notes go belly-up for some reason, I have a safe copy of my data!)

chrisvanpatten commented 2 hours ago

Reading the code and todos a little bit more, it seems like maybe it's expected that there are separate HTM and HTML files, so perhaps the ask here is just to document the purpose of the two files, and understand if the encoding issue is an expected thing or a glitch :)

Thanks!