Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 06:17 am EDT

Geeklog Forums

Charset issue


Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
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
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: cordiste

if 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
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
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
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

RichardBKK

Anonymous
Did you check in phpadmin if your database is in UTF-8?

Changing it is very easy,,,
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
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
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

All times are EDT. The time is now 06:17 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content