-
Notifications
You must be signed in to change notification settings - Fork 39
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
Added encoding to open file #12
base: master
Are you sure you want to change the base?
Conversation
Hmm it seems that the keyword argument "encoding" is not supported in Python 2.7. Is there a workaround for that? |
I think what we need is |
Successfully tested on Windows 8.1 with Python 3.4 |
Another solution where you don't have to change anything in your Python code: simple replace "Olá" with "Ola" 😉 |
@screendriver wouldn't that be ironic given what we are all trying to do is translate between languages :) |
That's true. But look at @rob19780114 s post. It seems to work with the codec Python module. |
@sharoonthomas Actually it's not a problem supplying à, but please set the correct encoding, if you do so. :) |
On Windows machines your package can not be installed via pip, so I added utf-8 encoding: