Four. Python3 character encoding

Source: Internet
Author: User

The bottom of the computer can identify other

Binary number: 0,1

To convert a binary number into a text that adults can read

China

Developed------>ASCII: only English and Latin characters can be saved. One character for one byte, eight bits

------>gb2312: Can only save more than 6,700 Chinese, 1980

------>gbk1.0: More than 20,000 characters saved, 1995

------>gb18030: Saved 27,000 Chinese, 2000

International

----------------------------->unicode (equivalent to a standard): utf-32 (a representation of Unicode, encoding set): One of 4 bytes of any character

------>unicode:utf-16: A character occupies 2 bytes or more than 2 (if the encoding of the character is not found, it is found in utf-32)

------>unicode-8: One English with ASCII code, one Chinese account 3 bytes

The Chinese standard is GBK.

The Windows system uses the GB18030

Encoding and decoding

Four. Python3 character encoding

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.