`

unicode utf8编码

 
阅读更多

asc 码 8位 一个字节

unicode(万国码 行业标准) 16位来存储  

utf-8 对unicode 进行的压缩 中文用3个字节来存储

 

python2.7中默认全部用unicode 来存储 (涉及到转码的问题)

python3 中 默认用 utf8来存储

 

unicode 转成 utf8 编码 (utf8 转成 unicode 解码)

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics