I have a string like this:
text = 'b\'"Bill of the one\\xe2\\x80\\x99s store wanted to go outside.\''
That is clearly meant to be byte formatted, however when I look at the object's type, it returns:
type(text)
<class 'str'>
I tried encoding at byte and then decoding, but this was the result:
text.encode("utf-8").decode("utf-8")
'b\'"Bill of the oneâ\x80\x99s store wanted to go outside.\''
How can I get the text properly formatted?