-1

What text format is this:
\xe1\x984a\x82@Z\xb4\x85\xd0
I would like to convert this to readable format. I attempted decoding with utf-16 but leads to error. Also encoding to ascii does not work.

tom
  • 21,844
  • 6
  • 43
  • 36
user2685079
  • 104
  • 9

1 Answers1

0

From My understanding \xe1\x984a\x82@Z\xb4\x85\xd0 is look like bytes stream.

so you can convert in readable format like this.

>>> b'\xe1\x984a\x82@Z\xb4\x85\xd0'.decode('utf-8','ignore')
'4a@Z'

you byte stream string also give the output in integer format like this.

>>> int.from_bytes(b'\xe1\x984a\x82@Z\xb4\x85\xd0', byteorder='big', signed=True)
-143585681428579525294640

for more you can visit here and here.

R.A.Munna
  • 1,699
  • 1
  • 15
  • 29