Skip to content

Fix reading of UTF8 annotations #276

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

Merged
merged 3 commits into from
Feb 27, 2025
Merged

Fix reading of UTF8 annotations #276

merged 3 commits into from
Feb 27, 2025

Conversation

skjerns
Copy link
Collaborator

@skjerns skjerns commented Feb 27, 2025

As proposed in #98, make UTF8 the default encoding for reading annotations.

I'm not sure in which cases utf8 should work with a fallback of latin1. Could be a leftover of python 2.7. Anyway, this should fix reading of UTF8 annotations.

This PR adds the fix, a test file with chinese UTF8 chars and a short test for reading these.

@skjerns skjerns merged commit 1b3bf77 into master Feb 27, 2025
33 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant