So, I have this piece of code:
f = open("crash.txt", "w")
junk = ("\xCC" * 1028)
f.write(junk)
f.close()
When I run this on Windows(3.5.1), I get a file with repeated "CC"s as hex characters. That is as expected.
However, running this on Linux(Python 3.4.2), I get repeated "c38c"s as hex characters.
I do not understand the output on Linux. Why does this happen and how do I fix it.
\xc3\x8c?