Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[BUG] SQL报错啦,版主大大快来看看。

[复制链接]
燧人氏 发表于 2009-8-24 13:29:20 | 显示全部楼层 |阅读模式
uchome_words 数据库是GBK,word 字段也是GBK。
当word字段中出现 “幸運” “民衆”  “公衆” “目黒” “鉢”这个字时就会报错。
目前已发现是上述那些字会报错,其他的都OK的,是什么原因呢?

SQL报错如下:

MySQL Error
Message: MySQL Query Error
SQL: INSERT INTO uchome_words (`word`, `uid`, `dateline`, `hiragana`, `pos`, `exp`) VALUES ('民衆', '0', '1251091233', 'みんしゅう', '名词', '民众')
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0', '1251091233', 'みんしゅう', '名词', '民众')' at line 1
Errno.: 1064
dede2010 发表于 2010-10-5 09:57:51 | 显示全部楼层
同样的问题 :
Discuz! info: MySQL Query Error

Time: 2010-10-5 9:01am
Script: /index.php

SQL: INSERT INTO [Table]sessions (sid,ip1, groupid, styleid, lastactivity, action, fid, uid, username)
VALUES ('Hhw4J0', 000, 10, 1, '1286238734', '1', '0', '886', '天,黒黒')
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''天,黒黒')' at line 2
Errno.: 1064

Similar error report has been dispatched to administrator before.

到  http://faq.comsenz.com 搜索此错误的解决方案

个人推测,应该是那个用户名中的:“黒”在捣蛋,因为这个是小日本鬼子的“黑”的写法。
不知道是不是DZ的后台程序特别爱国,对这些字特别敏感。

我想问的是如何解决?也不见注册的时候程序有屏蔽
回复

使用道具 举报

hjb510 发表于 2010-10-9 17:47:25 | 显示全部楼层
呵呵,gbk不支持的编码啊,换utf-8会好点啊!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-6-2 15:22 , Processed in 0.090024 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表