Home > Backend Development > PHP Tutorial > utf-8编码下的中文字有没有字节长度不是3的

utf-8编码下的中文字有没有字节长度不是3的

WBOY
Release: 2016-06-06 20:11:04
Original
1075 people have browsed it

如题目所述,到现在为止以utf-8编码的所有汉字中有没有字节长度不是3的(2或者4)?

回复内容:

如题目所述,到现在为止以utf-8编码的所有汉字中有没有字节长度不是3的(2或者4)?

占2个字节的:〇

占3个字节的:基本等同于GBK,含21000多个汉字

占4个字节的:中日韩超大字符集里面的汉字,有5万多个

一个utf8数字占1个字节

一个utf8英文字母占1个字节

摘自:http://blog.csdn.net/chummyhe89/article/details/7777613

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template