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 (Windows) #262

Closed
Veldhoen opened this issue Mar 6, 2019 · 1 comment
Closed

Character encoding (Windows) #262

Veldhoen opened this issue Mar 6, 2019 · 1 comment
Labels
Milestone

Comments

@Veldhoen
Copy link
Contributor

Veldhoen commented Mar 6, 2019

Python uses default system character encoding in calls to open(..). Under my Windows installation, this is cp1252, causing 'annif loadvoc' to fail with encoding errors.
I created a pull request where I explicitly added the encoding (utf-8) in every call to open(..)

@osma
Copy link
Member

osma commented Mar 6, 2019

Thanks for the issue report and the PR! Will look into this. I've only used Annif on Linux (using a UTF-8 locale) so haven't encountered this problem so far...

@osma osma added the bug label Mar 6, 2019
@osma osma added this to the v0.40 milestone Mar 6, 2019
@osma osma closed this as completed in 75c51d0 Mar 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants