I understand that this is likely a repeat question, but I'm having trouble finding a solution.
In short I have a string I'd like to decode:
raw = "\x94my quote\x94" string = decode(raw) expected from string
'"my quote"' Last point of note is that I'm working with Python 3 so raw is unicode, and thus is already decoded. Given that, what exactly do I need to do to "decode" the "\x94" characters?
urllib.request.urlopen, and there doesn't appear to be an option to change how the request is decoded. As pointed out in my selected answer, the solution to my immediate problem was to encode in "latin-1" and then decode in "windows-1252". Is this a reasonable approach, or is there a way to address the problem at its root?