ANSI、Unicode、Unicode big endian、UTF-8四种编码方式的对比
来源:互联网 发布:anaconda包含python 编辑:程序博客网 时间:2024/05/17 03:54
今天编程遇到了ANSI与UTF-8间的问题,查阅了相关资料,并对ANSI、Unicode、Unicode big endian、UTF-8四种编码方式进行了对比:
类型
字符串1
十六进制数
字符串2
十六进制数
ANSI
“1”
31
“12”
31 32
Unicode
“1”
FF FE 31 00
“12”
FF FE 31 00 32 00
Unicode big endian
“1”
FE FF 00 31
“12”
FE FF 00 31 00 32
UTF-8
“1”
EF BB BF 31
“12”
EF BB BF 31 32
类型
字符串3
十六进制数
字符串4
十六进制数
ANSI
“123”
31 32 33
“1234”
31 32 33 34
Unicode
“123”
FF FE 31 00 32 00 33 00
“1234”
FF FE 31 00 32 00 33 00 34 00
Unicode big endian
“123”
FE FF 00 31 00 32 00 33
“1234”
FE FF 00 31 00 32 00 33 00 34
UTF-8
“123”
EF BB BF 31 32 33
“1234”
EF BB BF 31 32 33 34
类型
字符串4
十六进制数
ANSI
“1234文件”
31 32 33 34 CE C4 BC FE
Unicode
“1234文件”
FF FE 31 00 32 00 33 00 34 00 87 65 F6 4E
Unicode big endian
“1234文件”
FE FF 00 31 00 32 00 33 00 34 65 87 4E F6
UTF-8
“1234文件”
EF BB BF 31 32 33 34 E6 96 87 E4 BB B6
通过以上的观察,便解决了在UTF-8中插入字符串的问题。- ANSI、Unicode、Unicode big endian、UTF-8四种编码方式的对比
- unicode,ansi,utf-8,unicode big endian编码的区别
- unicode,ansi,utf-8,unicode big endian编码的区别
- unicode,ansi,utf-8,unicode big endian编码的区别
- unicode,ansi,utf-8,unicode big endian编码的区别
- unicode,ansi,utf-8,unicode big endian编码的区别
- 介绍一下unicode,ansi,utf-8,unicode big endian编码
- 介绍一下unicode,ansi,utf-8,unicode big endian编码
- ANSI UNIcode UNIcode big endian UTF-8
- unicode,ansi,utf-8,unicode big endian
- VC ANSI环境下按行读取ANSI、UNICODE 、UNICODE big endian、UTF-8四种文本文件
- 编码(unicode,ansi,utf-8,unicode big endian编码的区别)
- [转载]Unicode、ANSI、UTF-8、Unicode Big Endian的故事
- Unicode、ANSI、UTF-8、Unicode Big Endian的故事
- Unicode、ANSI、UTF-8、Unicode Big Endian的故事
- unicode,ansi,utf-8,unicode big endian的区别
- Unicode,ANSI,UTF-8,Unicode Big Endian的故事
- unicode,ansi,utf-8,unicode big endian的故事
- org.apache.struts2.dispatcher.FilterDispatcher作用
- MySql之 replace 用法
- HDU2160:母猪的故事
- UVALive 3135 Argus
- 图形学(1)固定功能管线
- ANSI、Unicode、Unicode big endian、UTF-8四种编码方式的对比
- 作为开发者,你不应该害怕的 8 件事
- SQL语句大全
- 个人记录
- 黑马程序员——java之GUI编程
- OpenCV学习:Mat类详细解析+源码剖析(二)构造函数
- 【Struts2+Spring3+Hibernate3】SSH框架整合实现CRUD_1.1
- 最大值最小化
- 多段图的最短路径问题-----动态规划法