garbled conversion

On a horse, I encountered a garbled code. I have tried several encodings, but none of them can be parsed. In the end, this code is simple and rude.
Like it. . . nice one.


JAVA-----garbled code processing solution summary
Why is garbled code a topic that programmers can't avoid? This first starts with the encoding mechanism. Everyone has different encoding formats in Chinese and English, and decoding is also different! A summary of the solutions to various garbled characters encountered at work.

For Java, since the default encoding method is UNICODE, it is also prone to problems in Chinese. The common solution is
String s2 = new String(s1.getBytes("ISO-8859-1"), "GBK");

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326119532&siteId=291194637