I\'m attempting to decode text which is prefixing certain \'special characters\' with \\x. I\'ve worked out the following mappings by hand:
I'm guessing that what you are dealing with is a unicode string that has been encoded differently than the output stream it was sent to. ie. a utf-16 string output to a latin-1 device. In that situation, certain characters will be outputted as escape values to avoid sending control characters or wrong characters to the output device. This happens in python at least.