输入中文出现数据库错误 求解 输入中文出现数据库错误 求解
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

输入中文出现数据库错误 求解

Started by nemars, October 11, 2008, 11:42:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nemars

不管是设定还是新建相册还是评论,输入中文均提示"进行数据库查询时发生了错误"

求解!!!

nemars

错误代码是
While executing query "UPDATE cpg14x_config SET value = 'I love Photo 的' WHERE name = 'gallery_name'" on 0

mySQL error: Incorrect string value: '\xB5\xC4' for column 'value' at row 1


maryar


paivisual

肯定是数据库编码错误,你建立数据库是选的肯定是GB,如果这样,肯定会出现致命错误的。

建立数据库时,一定得要是UTF-8,但是还有一个问题,就是写入数据库的中文是乱码。这个到现在还不知道如何解决,正在查找资料解决中。