unicode utf8 encoding

asc code 8 bits one byte

unicode (unicode industry standard) 16 bits to store  

utf-8 compression of unicode Chinese uses 3 bytes to store

 

In python2.7, all are stored in unicode by default (the problem of transcoding is involved)

In python3, utf8 is used by default for storage

 

unicode to utf8 encoding ( utf8  to unicode  decoding)

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326797655&siteId=291194637