Page 1 of 1

Trouble with character set

Posted: Thu Nov 09, 2006 8:58 am
by phisk
Hi,
I am evaluating CMSMS. I live in Denmark and need to use the danish character set. If I choose "ISO-8859-1 - Latin 1/West European", text from tables in the mysql database ar presented correctly, but {sitename} and {title} ar not correct. If I choose "Default" or "UTF-8 Unicode", text from mysql database i not presented correct, but {sitename} and {title} ar correct.
I think, that CMSMS is great in other respects, and I will be happy to use it, but if I do not find a solution for the character set, I will have to drop it.

Re: Trouble with character set

Posted: Thu Nov 09, 2006 9:11 am
by cyberman
You have to set in config.php

Code: Select all

$config['default_encoding'] = 'ISO-8859-1';
$config['admin_encoding'] = 'ISO-8859-1';
Admin default is utf-8 so {sitename} and {title} will written with this encoding to database  ;).

Re: Trouble with character set

Posted: Thu Nov 09, 2006 9:55 am
by phisk
cyberman wrote: You have to set in config.php

Code: Select all

$config['default_encoding'] = 'ISO-8859-1';
$config['admin_encoding'] = 'ISO-8859-1';
Admin default is utf-8 so {sitename} and {title} will written with this encoding to database  ;).
Thanks for the above advice. I changed config.php and ensured, that my template was set to the above encoding, but it still does not work.

Re: Trouble with character set

Posted: Thu Nov 09, 2006 10:12 am
by cyberman
Have you cleared cache?

(You should do it after every change on config.php.)

And - important - you have to write title and sitename once again. If I'm right the values in db are currently encoded in utf-8 - please check it.

Re: Trouble with character set

Posted: Thu Nov 09, 2006 10:20 am
by phisk
cyberman wrote: Have you cleared cache?

(You should do it after every change on config.php.)

And - important - you have to write title and sitename once again. If I'm right the values in db are currently encoded in utf-8 - please check it.
OK, that did the trick. Thank you very much.