dogsheep / dogsheep/apple-notes-to-sqlite

Character encoding problem

Open
#6 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
251
Forks
11
PR merge metrics
No merged PRs in 30d

Description

I ran against a recent note with this in it:

> Or just "Actions ⚙️ "

And got back:

image

> `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:

```python
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)
```
image

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.