Practical tips-rapid Decoding of Unicode/utf8 Encoding

Source: Internet
Author: User

Conversion is inevitable for programming. Unicode Or Utf8 To the string. For example VCard 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
The following part of this sentence is used: Utf8 Encoding. I want to know what it contains and don't want to program it. We can borrow it. Winhex Edit a text file and use Notepad (Notepad) open, you can know the specific content.
For example Utf8 Byte: E6 9C AA E8 AE be E5 AE 9A E7 be A4 E7 BB 84 Total 15 Bytes
We are opening Winhex , Create 15 And then input the above bytes.

Save it as a text file.Test.txt.

Then openTest.txt, You can see Chinese: No group is set

In this way, a simple decoding function is implemented.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.