Fix utf-8 encoding by mhightower83 · Pull Request #8565 · esp8266/Arduino (original) (raw)
Issue posted to commit
d1d4212#r73517358
Should resolve UnicodeDecodeError: multibyte-byte.
I don't have an environment to test this; however, this version still works on my machine.
The python docs say "UTF-8 is one of the most commonly used encodings, and Python often defaults to using it."
Hmm, "often" wasn't often enough. I set encoding to "utf-8" for all open()
calls. Is there a chance that doing all of them will cause a problem?