Home > php教程 > php手册 > php截取函数,应该很简单,只是我比较菜而已,这里'utf-8&#3

php截取函数,应该很简单,只是我比较菜而已,这里'utf-8&#3

WBOY
Release: 2016-06-06 19:40:39
Original
754 people have browsed it

@半分微醉: utf-8是一种编码格式,不同编码格式一般对于不同的字节数,特别是对于咱们的中文。下面贴一下一个兄弟的测试资料,详见:http://learnmore.iteye.com/blog/246039 英文字母:A 字节数:1;编码:GB2312 字节数:1;编码:GBK 字节数:1;编码:GB180

@半分微醉: utf-8是一种编码格式,不同编码格式一般对于不同的字节数,特别是对于咱们的中文。下面贴一下一个兄弟的测试资料,详见:http://learnmore.iteye.com/blog/246039

英文字母:A
字节数:1;编码:GB2312
字节数:1;编码:GBK
字节数:1;编码:GB18030
字节数:1;编码:ISO-8859-1
字节数:1;编码:UTF-8
字节数:4;编码:UTF-16
字节数:2;编码:UTF-16BE
字节数:2;编码:UTF-16LE

中文汉字:人
字节数:2;编码:GB2312
字节数:2;编码:GBK
字节数:2;编码:GB18030
字节数:1;编码:ISO-8859-1
字节数:3;编码:UTF-8
字节数:4;编码:UTF-16
字节数:2;编码:UTF-16BE
字节数:2;编码:UTF-16LE

Related labels:
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template