今天彻底理解了中文乱码问题,写个随笔记录一下。方便日后查阅。 主流的编码方式有ASCII(美国码),ISO88591(latin码),GBK码(国标码,也叫中国码),Unicod码(万国码,主流码,苹果推荐),Unicode-Bom(微软自家码,windows系统). 现在对这几个编码进行简单描述: ...
分类:
其他好文 时间:
2017-06-17 18:25:31
阅读次数:
229
Problem The Latin alphabet contains 26 characters and telephones only have ten digits on the keypad. We would like to make it easier to write a messag ...
分类:
其他好文 时间:
2017-06-09 11:51:57
阅读次数:
224
原文地址:http://blog.csdn.NET/xzl04/article/details/6307416 [javascript] view plain copy 0000-007F:C0控制符及基本拉丁文 (C0 Control and Basic Latin) 0080-00FF:C1控制 ...
分类:
其他好文 时间:
2017-06-06 18:53:57
阅读次数:
334
A square arrangement of numbers is a 5 x 5 Latin Square because each whole number from 1 to 5 appears once and only once in each row and column. Write ...
分类:
其他好文 时间:
2017-06-03 22:29:59
阅读次数:
255
Latin1是ISO-8859-1的别名,有些环境下写作Latin-1。ISO-8859-1编码是单字节编码,向下兼容ASCII,其编码范围是0x00-0xFF,0x00-0x7F之间完全和ASCII一致,0x80-0x9F之间是控制字符,0xA0-0xFF之间是文字符号。 Latin1是ISO-8 ...
分类:
其他好文 时间:
2017-05-23 12:21:09
阅读次数:
142
1.设置工作空间编码方式: window-->preference-->general -->workspace 中设置Text file encoding 把编码方式改为UTF-8 2.设置jsp文件的编码方式,默认是latin-1,是不支持中文的。window-->preferences-->w ...
分类:
编程语言 时间:
2017-05-22 21:27:44
阅读次数:
172
今天使用MySQLdb往MySQL插入中文数据遇到一个异常: UnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-3: ordinal not in range(256) 解决办法: ...
分类:
Web程序 时间:
2017-05-12 21:57:40
阅读次数:
184
项目中用到MySQL数据库时中文出现乱码问题(中文字符都变成了?)解决: 1、统一项目与数据库的编码,项目中用的是UTF-8因此我的把数据库的编码统一成UTF-8 改动方式:改动 MySQL根文件夹中的 my.ini 文件替换default-character-set=latin为default-c ...
分类:
数据库 时间:
2017-05-10 18:56:41
阅读次数:
258
打开vim安装目录下的_vimrc,在头部加上几句配置语句就能搞定: //设置默认编码 set encoding=utf-8 set fileencodings=utf-8,chinese,latin-1 if has("win32") set fileencoding=chinese else s ...
分类:
系统相关 时间:
2017-04-20 10:21:29
阅读次数:
230
打开vim安装目录下的_vimrc,在头部加上几句配置语句就能搞定: //设置默认编码 set encoding=utf-8 set fileencodings=utf-8,chinese,latin-1 if has("win32") set fileencoding=chinese else s ...
分类:
系统相关 时间:
2017-04-20 10:20:44
阅读次数:
211