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: Charset problems  (Read 6351 times)

0 Members and 1 Guest are viewing this topic.

mijack

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 9
    • FC Sion 4 ever
Charset problems
« on: November 29, 2005, 10:07:56 am »

Hello,

I'm using Copperming in French, and i get problems with some accents :
'é' becomes 'Ê'
'à' becomes 'ŕ'
'è' becomes 'è'

I'm using the normal French file (not the UTF-8 one) and the Central European charset (ISO-8859-2). I tried also the UTF-8 charset, but then all special chars which i wrote before updating to the 1.4.2 version look like this : �. I can't go back and rewrite all my texts, can I ?

Can you help me solving this ?
« Last Edit: November 29, 2005, 10:38:38 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Charset problems
« Reply #1 on: November 29, 2005, 10:12:41 am »

there's no such thing as a "normal" french file. The one and only french language file that you can use comes with cpg1.4.2 - it's utf-8 encoded. Choose unicode (utf-8) encoding in config and your issues should be gone. Remove all surplus language files from older coppermine versions in your lang folder.

Joachim

P.S. There's a french support board available as well
Logged

mijack

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 9
    • FC Sion 4 ever
Re: Charset problems
« Reply #2 on: November 29, 2005, 10:34:12 am »

Thank you.
I didn't see that the languages files with the 'utf8.php' extension are not used anymore. I deleted them and now use only the new ones.
For the texts, i used the tool charsetmgr.php to change them. Finally, i selected the Unicode charset.

Now everything works fine  ;)

P.S. : how to put the "solved" image ?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Charset problems
« Reply #3 on: November 29, 2005, 10:39:37 am »

Thanks for returning and resolving your thread - I'm glad it works for you now.
P.S. : how to put the "solved" image ?
Only moderators can do this, I marked the thread accordingly
Logged

LeviathanX

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 1
Re: Charset problems
« Reply #4 on: December 13, 2005, 10:06:49 am »

Hello,

I don't know whether all language files in 1.4.2 are UTF-8 encoded, but it's not done just to select UTF-8 as encoding in the config options.

The server also has to support UTF-8.

If it doesn't here is a workaround for an Apache webserver ( tested with 2.0 ):

* Check for mod_mime support on this server ( usually always there )
* Create an .htaccess with following content:
Code: [Select]
AddDefaultCharset UTF-8
* Place it in your Coppermine - root-directory and in your theme-root directory

The browser should now switch to UTF-8 instead of the webservers generic default of ISO-8859-1(5).
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.