I do not understand why my code is not working. I am writing some very simple code to write a single byte to a file.
with open("foo.txt", "w+", encoding='utf-8') as f:
f.write('\x80')
As you can see below, it ends up writing two bytes when I only want to write one... Can anybody help?