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

add UTF-8 encoding to file open() #11

Open
mcorne opened this issue Sep 15, 2021 · 0 comments
Open

add UTF-8 encoding to file open() #11

mcorne opened this issue Sep 15, 2021 · 0 comments

Comments

@mcorne
Copy link

mcorne commented Sep 15, 2021

the encoding default is not UTF-8 on all platform, eg Windows
it would be nice to add the encoding="utf-8" option to all open() calls in https://github.com/cltk/lat_models_cltk/blob/master/lemmata/collatinus/__convert.py
for example, line 28, replace:
with open("src/morphos.la") as f:
with:
with open("src/morphos.la", encoding="utf-8") as f:

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

No branches or pull requests

1 participant