Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apple_notes_to_sqlite/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def extract_notes():
note = {}
body = []
for line in process.stdout:
line = line.decode("mac_roman").strip()
line = line.decode("utf8").strip()
if line == f"{split}{split}":
if note.get("id"):
note["body"] = "\n".join(body).strip()
Expand Down Expand Up @@ -197,7 +197,7 @@ def extract_folders():
for line in process.stdout:
for key in ("long_id", "name", "parent"):
if line.startswith(f"{key}: ".encode("utf8")):
folder[key] = line[len(f"{key}: ") :].decode("macroman").strip() or None
folder[key] = line[len(f"{key}: ") :].decode("utf8").strip() or None
continue
if line == b"===\n":
folders.append(folder)
Expand Down