Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Caption provided by cpmfetch does not show UTF-8 characters correctly  (Read 4007 times)

0 Members and 1 Guest are viewing this topic.

vivison

  • Coppermine newbie
  • Offline Offline
  • Posts: 3

I'm using cpmfetch 2.0.0 within SMF 1.1.2 and coppermine-gallery 1.4 to show last 6 pics with caption as alt tag in SMF header session. (They look nice! Thanks cpmfetch for such a cool tool.) However, the caption fails to show Vietnamese correctly. SMF and coppermine gallery have no problem displaying the Vietnamese caption. I did change all encoding references to utf8 but no cigar! Please advice on what could be the cause of this display problem.
Thanks and regards.
Logged

vivison

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Caption provided by cpmfetch does not show UTF-8 characters correctly
« Reply #1 on: February 07, 2008, 11:21:59 pm »

It works (displaying Vietnamese correctly) if I added:

mysql_query('SET NAMES utf8');

before:

$resultset = mysql_query($sqlcode, $this->dbconnection);

Please refer to function dbExecuteSql($sqlcode, $convert=true) (in cpmfetch_dao.php) for the subject line of code.

Logged
Pages: [1]   Go Up
 

Page created in 0.013 seconds with 16 queries.