coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 install => Topic started by: mijack on November 29, 2005, 10:07:56 AM

Title: Charset problems
Post by: mijack 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 ?
Title: Re: Charset problems
Post by: Joachim Müller 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 (http://forum.coppermine-gallery.net/index.php?board=38.0) available as well
Title: Re: Charset problems
Post by: mijack 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 ?
Title: Re: Charset problems
Post by: Joachim Müller on November 29, 2005, 10:39:37 AM
Thanks for returning and resolving your thread - I'm glad it works for you now.
Quote from: mijack on November 29, 2005, 10:34:12 AM
P.S. : how to put the "solved" image ?
Only moderators can do this, I marked the thread accordingly
Title: Re: Charset problems
Post by: LeviathanX 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:

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).