4 ms·
I often run into this when I do stuff in Python and forget to add encoding="utf-8" to open(). I think they're finally changing this to the default. Actually I
by andai 2y ago
I often run into this when I do stuff in Python and forget to add encoding="utf-8" to open(). I think they're finally changing this to the default.
Actually I ran into a separate issue on Windows where Python will automatically replace the line endings depending on the OS. So I had to specify newline='\n' as an argument to open() or it would alter the newlines to Windows format in the output.
(My fault for not running it in WSL, I guess.)