Charset problems Charset problems
 

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]

Main Menu

Charset problems

Started by mijack, November 29, 2005, 10:07:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mijack

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 ?

Joachim Müller

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

mijack

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 ?

Joachim Müller

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

LeviathanX

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