Closed alxwrd closed 6 years ago
Just for reference: everything was working fine on my Linux machine. I did some digging because I was curious as to why.
Python 3.6 changes some more defaults:
PEP 529: Change Windows filesystem encoding to UTF-8 PEP 528: Change Windows console encoding to UTF-8
But the default encoding for open() is still whatever Python manages to infer from the environment.
And yup, on the windows machine:
>>> import locale
>>> locale.getpreferredencoding()
'cp1252'
@alxwrd That's interesting, thanks for spotting and fixing this! :tada:
Thanks for the info too, I don't know much about encoding so I was just opening the file and hoping for the best :grimacing:
hello 👋
I'm currently getting the following error on my Windows machine:
This PR should fix this by specifying the encoding.