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: Problem with Polish chars in picture descriptions  (Read 2595 times)

0 Members and 1 Guest are viewing this topic.

pasenger

  • Coppermine newbie
  • Country: pl
  • Offline Offline
  • Gender: Male
  • Posts: 10
Problem with Polish chars in picture descriptions
« on: February 01, 2014, 08:30:30 pm »

After updating the gallery with version 1.5.24 to 1.5.26 swapping files and update the database in the descriptions of pictures appeared in August bushes.

If the file config.inc.php will add $ CONFIG ['dbcharset'] = 'latin2'; descriptions are displayed correctly in the keywords appear in the bushes.

How to solve it?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Problem with Polish chars in picture descriptions
« Reply #1 on: February 03, 2014, 12:04:53 pm »

Splitted from http://forum.coppermine-gallery.net/index.php/topic,76135.0.html

Please undo the change in include/config.inc.php and post a link to your gallery, especially some links where we can see the issue.
Logged

pasenger

  • Coppermine newbie
  • Country: pl
  • Offline Offline
  • Gender: Male
  • Posts: 10
Re: Problem with Polish chars in picture descriptions
« Reply #2 on: February 09, 2014, 07:00:33 pm »

http://www.natorze.com.pl/displayimage.php?pid=809

The problem only for displaying the correct keywords:

instead "Chabówka" displays "Chabówka"

instead "małopolskie displays maÅ�opolskie"

instead "jesień" displays "jesieÅ�"

In the file include / functions.inc.php have modified record descriptions of images to display them properly:

Code: [Select]
function cpg_db_connect()
{
    global $CONFIG;

    $result = @mysql_connect($CONFIG['dbserver'], $CONFIG['dbuser'], $CONFIG['dbpass']);

    if (!$result) {
        return false;
    }

    if (!mysql_select_db($CONFIG['dbname'])) {
        return false;
    }

    if (empty($CONFIG['dbcharset'])) {
        cpg_db_query("set names latin2", $result);
    }

    return $result;
}

With this modification, include / function.ini.php version 1.5.24 working properly. Version 1.5.26 has a problem with Polish characters in keywords.
Logged

pasenger

  • Coppermine newbie
  • Country: pl
  • Offline Offline
  • Gender: Male
  • Posts: 10
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Problem with Polish chars in picture descriptions
« Reply #4 on: February 10, 2014, 01:36:31 pm »

Please have a look at the (currently) last post of this topic and follow the link to our SVN repository to see how to fix that issue: http://forum.coppermine-gallery.net/index.php/topic,76830.msg372140.html#msg372140

Logged

pasenger

  • Coppermine newbie
  • Country: pl
  • Offline Offline
  • Gender: Male
  • Posts: 10
Re: Problem with Polish chars in picture descriptions
« Reply #5 on: February 10, 2014, 09:52:20 pm »

Everything works fine after replacing these files. Thank you Andre.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.