I'm currently porting a Python2 script to Python3 and have problems with this line:
print('\xfe')
When I run it with Python2 python test.py > test.out
, than the file consists of the hex-values FE 0A
, like expected.
But when I run it with Python3 python3 test.py > test.out
, the file consists of the hex-values C3 BE 0A
.
What's going wrong here? How can I receive the desired output FE 0A
with Python3.