Closed akshaya-a closed 1 year ago
by default, the open() command in text mode ('t') will use the platform encoding, which on windows happens to not be utf-8. In your case as the content is known to be utf-8, a simple fix would be to specify the encoding= kwarg on open()
python 3.9, latest template
Thanks @akshaya-a, just pushed a fix
🐛 Describe the bug
by default, the open() command in text mode ('t') will use the platform encoding, which on windows happens to not be utf-8. In your case as the content is known to be utf-8, a simple fix would be to specify the encoding= kwarg on open()
Versions
python 3.9, latest template