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

Incorrect source/output encoding #26

Open
maxfischer2781 opened this issue Nov 21, 2021 · 0 comments
Open

Incorrect source/output encoding #26

maxfischer2781 opened this issue Nov 21, 2021 · 0 comments

Comments

@maxfischer2781
Copy link

maxfischer2781 commented Nov 21, 2021

The encoding of strings is inconsistent, which leads to malformed output:

>>> from spanishconjugator import Conjugator as c  
>>> verb = c().conjugate('pasar', 'preterite', 'indicative', 'yo')
>>> verb
'pasé'

See also StackOverflow "Python – How do I convert an ASCII string into UTF-8?"

It appears the source code is actually UTF-8 encoded but wrongfully declared as iso-8859-15. In this specific case, the source code contains the bytes \xc3\xa9 which is é in UTF-8 but é in iso-8859-15.

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