I am trying to convert this line of raw data into hex within my program.
However I am getting this error:
This is the line of raw data i am trying to convert:
PQ=
(3< Ú Âq*Åž‰ü 'a
Here is what the line looks like in notepad:
from what I can tell is that the -> symbol in the raw data text is causing my " "
marks to close or end.
My goal is to create a function that can convert raw data lines like the one shown above into Hexadecimal.
So far i can tell that the key that is causing the error is the ->
symbol which appears as a blank space in the IDE.
Upon using an online converter I see that the symbol in hex for UTF-8 is 1A
and I'm not sure how to decode this line in order to read it in my IDE correctly.
Here is a paste bin of the raw data text: http://pastebin.com/q4p7j6gU
I'm trying to use base64
library in order to try to decode this line:
import base64
base64.b64decode(b""" PQ=
(3< Ú Âq*Åž‰ü 'a""")