Advanced search  

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

Pages: [1]   Go Down

Author Topic: 输入中文出现数据库错误 求解  (Read 20334 times)

0 Members and 1 Guest are viewing this topic.

nemars

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
输入中文出现数据库错误 求解
« on: October 11, 2008, 11:42:52 am »

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

求解!!!
Logged

nemars

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: 输入中文出现数据库错误 求解
« Reply #1 on: October 11, 2008, 12:14:19 pm »

错误代码是
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

Logged

maryar

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: 输入中文出现数据库错误 求解
« Reply #2 on: October 13, 2008, 10:34:53 am »

你的数据库编码是什么?
Logged

paivisual

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: 输入中文出现数据库错误 求解
« Reply #3 on: December 16, 2009, 03:28:07 am »

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

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

Page created in 0.017 seconds with 22 queries.