Practical tips - Quick decoding UnicodeUTF8 encoding

xiaoxiao2021-03-06  23

Programming is inevitable to encounter the case where you need to convert Unicode or UTF8 to the string. For example, there is x-esi-categories; charset = utf-8; eNCoding = quoted-printable: = E6 =

9C

= Aa = e8 = ae = be == e5 = ae =

9A

= E7 = BE = a4 = E7 = BB = 84 We pay attention to the back part of this sentence, use UTF8 encoding. I want to know what it contains, and I don't want to program, we can use WinHex to edit a text file, and then open with Notepad (Notepad), you can know the specific content. For example, UTF8 bytes above: E6

9C

AA E8 AE BE E5 AE

9A

E7 be A4 E7 BB 84 Total 15 bytes We open WinHex, create a 15-byte empty file, then enter the above bytes.

Then save as a text file, this example uses Test.txt.

Then open Test.txt, you can see Chinese: No group

In this way, a simple decoding function is achieved.

转载请注明原文地址:https://www.9cbs.com/read-66401.html

New Post(0)