Posted on: 09/15/09 06:38am
By: ::Ben
Hello everybody,
On geeklog.fr $_CONF['default_charset'] is set to 'utf-8' in the siteconfig.php file. Everything is perfect with english_utf-8 language but if I choose french_france_utf8 as my user language, $_CONF['default_charset'] is then set to 'iso-8859-1' and there is issues with some accents (not all).
Why my siteconfig default charset is overwrite when I change language? :banghead:
::Ben
Re: Charset issue
Posted on: 09/15/09 06:49am
By: Dirk
Quote by: cordisteif I choose french_france_utf8 as my user language, $_CONF['default_charset'] is then set to 'iso-8859-1'
So your french_france_utf-8.php declares iso-8859-1 as the character set? That can't be right. The version that ships with Geeklog properly sets it to UTF-8.
bye, Dirk
Re: Charset issue
Posted on: 09/15/09 08:09am
By: ::Ben
No, whatever I use the french_france_utf-8.php ship with geeklog or another the charsety is overwrited :banghead:
I can't reproduce this issue on another site :banghead: :banghead:
::Ben
Re: Charset issue
Posted on: 09/15/09 11:58am
By: Anonymous (RichardBKK)
Did you check in phpadmin if your database is in UTF-8?
Changing it is very easy,,,
Re: Charset issue
Posted on: 09/15/09 04:11pm
By: Dirk
Hmm, not sure then what the problem could be. Certainly not the database.
Is that a standard Geeklog install or does it use the multi-site hack?
bye, Dirk
Re: Charset issue
Posted on: 09/16/09 04:26am
By: ::Ben
Ok I found it. Charset was overwrited by sitemap plugin english language file configuration.
Text Formatted Code
if (strpos(strtolower($_SERVER['PHP_SELF']), 'english.php') !== FALSE) {
die('This file cannot be used on its own.');
}
$LANG_CHARSET = 'iso-8859-1';
Thanks.
::Ben