Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/16/11852616/html/21say-com/wp-content/plugins/translate/translate.php on line 11

Warning: mysql_query(): A link to the server could not be established in /home/content/16/11852616/html/21say-com/wp-content/plugins/translate/translate.php on line 11

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/content/16/11852616/html/21say-com/wp-content/plugins/translate/translate.php on line 11

Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/16/11852616/html/21say-com/wp-content/plugins/translate/translate.php on line 20

Warning: mysql_query(): A link to the server could not be established in /home/content/16/11852616/html/21say-com/wp-content/plugins/translate/translate.php on line 20

Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/16/11852616/html/21say-com/wp-content/plugins/translate/translate.php on line 328

Warning: mysql_query(): A link to the server could not be established in /home/content/16/11852616/html/21say-com/wp-content/plugins/translate/translate.php on line 328

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/content/16/11852616/html/21say-com/wp-content/plugins/translate/translate.php on line 329

Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/16/11852616/html/21say-com/wp-content/plugins/translate/translate.php on line 335

Warning: mysql_query(): A link to the server could not be established in /home/content/16/11852616/html/21say-com/wp-content/plugins/translate/translate.php on line 335

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/content/16/11852616/html/21say-com/wp-content/plugins/translate/translate.php on line 336
关于动易SQL版乱码问题及搜索问题解决方法ZT | 骆驼调频
现在的位置: 首页 > Web > 正文
关于动易SQL版乱码问题及搜索问题解决方法ZT
2007年10月25日 Web ⁄ 共 619字 暂无评论 ⁄ 被围观 120 views+

问题:动易SQL版在使用过程中有时会出现乱码,这是什么原因造成的?


原因分析: SQL版的乱码问题还是出现在SQL SERVER的安装设置上。默认安装时系统默认的排序规则是拉丁文的排序规则,但一般人在安装时没有考虑到这一点,安装时只是点取下一步,安装完成后,造成了动易SQL版在使用过程中出现乱码。


解决方法:如果是新建数据库,可以在建立数据时指定排序规则,记得选中文简体;最彻底的就是重装SQL,在安装时自定义安装,选好语言版本及排序规则,这样问题就解决了。


应该选择的排序规则是: Chinese_PRC_CS_AI_WS

参数解释如下:
前半部份:指UNICODE字符集,Chinese_PRC_指针对大陆简体字UNICODE的排序规则。
排序规则的后半部份即后缀 含义:
  _BIN 二进制排序
  _CI(CS) 是否区分大小写,CI不区分,CS区分
  _AI(AS) 是否区分重音,AI不区分,AS区分   
  _KI(KS) 是否区分假名类型,KI不区分,KS区分 
    _WI(WS) 是否区分宽度 WI不区分,WS区分 
区分大小写:如果想让比较将大写字母和小写字母视为不等,请选择该选项。
区分重音:如果想让比较将重音和非重音字母视为不等,请选择该选项。如果选择该选项,
         比较还将重音不同的字母视为不等。
区分假名:如果想让比较将片假名和平假名日语音节视为不等,请选择该选项。
区分宽度:如果想让比较将半角字符和全角字符视为不等,请选择该选项.

给我留言

留言无头像?