Which encoding uses the \x (backslash x) prefix?

前端 未结 4 502
星月不相逢
星月不相逢 2020-12-13 06:17

I\'m attempting to decode text which is prefixing certain \'special characters\' with \\x. I\'ve worked out the following mappings by hand:

         


        
4条回答
  •  失恋的感觉
    2020-12-13 06:45

    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.

提交回复
热议问题