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: wrong encoding  (Read 2308 times)

0 Members and 1 Guest are viewing this topic.

frank61

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
wrong encoding
« on: October 07, 2008, 06:18:24 pm »

Hi,
I have a problem with one UTF8 character: Á
I can't manage to display it correctly. All the other characters are displayed right. Big once or with diacritacal marks.
PHP localization language file is OK but "Á" from DB, for example first category name "FOTO REPORTÁŽE A-MARK" is displayed as "FOTO REPORT�?ŽE A-MARK" 
What's wrong with my installation?
Thanks for advice.
Frank
http://www.photo.amark.sk/index.php
Logged

frank61

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: wrong encoding
« Reply #1 on: October 07, 2008, 08:04:04 pm »

It is OK

Inserted
mysql_query("SET NAMES 'utf8'",$result);  <=== insert this code
to functions.inc.php works well.

Thanks to Stanaka:
http://forum.coppermine-gallery.net/index.php/topic,24129.0.html

Now Coppermine writes data to DB as corectly as UTF8 encoded characters.

Frank
Logged

SaWey

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1119
    • SaWey.be
Re: wrong encoding
« Reply #2 on: October 07, 2008, 08:10:38 pm »

Thanks for sharing your solution
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.