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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

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

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

Previous topic - Next topic

0 Members and 3 Guests 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,但是还有一个问题,就是写入数据库的中文是乱码。这个到现在还不知道如何解决,正在查找资料解决中。