I have this text:
'\x0023AE1245F30B\x0000000000\x00CTRL-000,B01F00R03Z01\x00\x7f\x00\x00\n\x00\x00\x00\x00\x00\x00\x00P\x1d\xc9\xf0\xfd\x7f\x00\x00\x05\x00\x00\x00\x00\x00\x00\x00\x1b\xe8K\xcfi\x7f\x00\x00V\x00\x00\x00\x00\x00\x00\x00 \x86\x80\xcfi\x7f\x00\x00P\x1d\xc9\xf0\xfd\x7f\x00'
How can I put off chars like \x00P?
I've tried with string.encode('UTF-8') But it's not working, throws me that error:
'ascii' codec can't decode byte 0xc9 in position 58: ordinal not in range(128)