Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Character encoding problem #6

Open
simonw opened this issue Mar 9, 2023 · 2 comments
Open

Character encoding problem #6

simonw opened this issue Mar 9, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@simonw
Copy link
Collaborator

simonw commented Mar 9, 2023

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:

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

@simonw simonw added the bug Something isn't working label Mar 9, 2023
@amlestin
Copy link

amlestin commented Apr 2, 2023

I'm experiencing something similar. My apostrophes (') turn into (’) and the output is truncated. Hoping to debug next weekend
Screenshot 2023-04-02 at 4 24 10 PM

@sirnacnud
Copy link

Just changing the encoding in extract_notes to utf8 seems to fix it for my titles that were messed up.

Screen Shot 2023-04-14 at 5 14 18 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants