Python character encoding and python Encoding

Source: Internet
Author: User

Python character encoding and python Encoding

The Assic Code does not support Chinese characters. The first table that supports Chinese characters is GB2312.

GB2312 contains 7445 characters

GBK1.0 contains 21886 characters

GB18030 contains 27484 Chinese characters and a few Chinese characters including Tibetan and Uyghur characters.

Unicode universal code, supporting encoding of all countries and regions

Extended set of UTF-8 unicode, variable length character delimiter set

Unicode is backward compatible with gb2312, gbk

 

Note:

Python2.x is encoded as Assic by default.

Python3.x is unicode by default. Therefore, Python3.x directly supports Chinese and does not require secondary processing.

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.