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

Errors when syncing certain characters #13

Closed
kitschpatrol opened this issue Sep 1, 2024 · 4 comments
Closed

Errors when syncing certain characters #13

kitschpatrol opened this issue Sep 1, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@kitschpatrol
Copy link
Owner

A note with the following content produces an error:

Ułożenie znacznika w USG

---
doglowowo w strzałkowym;
w prawo w czołowym
(w lewo na plecach)

A note with the following content does not:

Ulozenie znacznika w USG

---
doglowowo w strzałkowym;
w prawo w czołowym
(w lewo na plecach)

(As reported by @aesculapa)

@kitschpatrol
Copy link
Owner Author

kitschpatrol commented Sep 2, 2024

I'm able to reproduce this. Getting the error:

Error: Write failed. File not found:
/Anki/Test/Ułożenie znacznika w USG.md

Special characters are only an issue in file names, not the note bodies — in this case the file name is derived automatically from the contents.

It's Obsidian-specific, unicode file names work fine in the CLI version of Yanki.

Will fix but might be a few days.

@aesculapa
Copy link

aesculapa commented Sep 2, 2024 via email

@kitschpatrol
Copy link
Owner Author

Ok, this was a little tricky and seems to be related to unicode normalization issues, where visually identical unicode strings have different byte representations.

Obsidian has its own ideas about normalization, as does Anki, as do Windows and macOS. I think I have a fix that works, so please upgrade to 1.4.3 and give it try.

@kitschpatrol
Copy link
Owner Author

I'm going to assume that this is fixed since the related tests are passing on my end and I haven't heard any updates to the contrary in this thread.

But please don't hesitate to reopen if you're still seeing this issue.

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

2 participants