unicode utf8编码

asc 码 8位 一个字节

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

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

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

python3 中 默认用 utf8来存储

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

猜你喜欢

转载自xdx2599.iteye.com/blog/2269540
今日推荐