| Author |
Message |
|
Filip
|
Post subject: Charset problem Posted: Wed Oct 21, 2009 2:01 am |
|
Joined: Tue Oct 13, 2009 12:23 pm Posts: 20
|
Hi, I am Swedish so I want to use the ISO-8859-1 (latin1) in my impresspages. ÅÄÖ is part of this collation table. So I've set the config.php Code: define('CHARSET', 'ISO-8859-1'); //system characterset define('MYSQL_CHARSET', 'latin1'); ÅÄÖ works great in the content management. When I enter ÅÄÖ in the menu management it looks good within the menu management, but the menus on the frontend doesn't understand ÅÄÖ. Do you have any quick fix? Thanks, Filip
|
|
 |
|
 |
|
ImpressPages
|
Post subject: Re: Charset problem Posted: Wed Oct 21, 2009 8:14 am |
|
 |
| Site Admin |
Joined: Tue Apr 28, 2009 7:21 am Posts: 55
|
|
I strongly suggest to use UTF-8 It is default widely used charset. As far as i know it includes all required symbols.
If you wish to use latin, you need to change such things:
1 charset in meta tags (template file) 2 database (all tables and all string fieds) collation 3 config file
Have you changed the charset in meta tags?
|
|
 |
|
 |
|
Filip
|
Post subject: Re: Charset problem Posted: Wed Oct 21, 2009 6:02 pm |
|
Joined: Tue Oct 13, 2009 12:23 pm Posts: 20
|
|
ÅÄÖ just won't work with UTF-8. The swedish standard is ISO-8859-1.
No I haven't changed anything except the config.php to what I wrote before.
Everything works perfectly. Except the menu management. Under content management you can change the "Button title". If I write ÅÄÖ there it works! ÅÄÖ appears like it should in the menu. But when I click menu management the text is scrambled. So the quick fix is to NOT use the menu management for entering the button titles, use the button title input on the content management page instead. Allthough it would be great to be able to enter button titles also in the menu management in the future!
Thanks, Filip
|
|
 |
|
 |
|
Filip
|
Post subject: Re: Charset problem Posted: Wed Oct 21, 2009 6:09 pm |
|
Joined: Tue Oct 13, 2009 12:23 pm Posts: 20
|
|
Correction: I made my own template and obviously I have used charset=iso-8859-1 in the meta tags in the template file. But it's still strange why Button title works in content management and not in the menu management. Or isn't it?
|
|
 |
|
 |
|
Filip
|
Post subject: Re: Charset problem Posted: Wed Oct 21, 2009 6:12 pm |
|
Joined: Tue Oct 13, 2009 12:23 pm Posts: 20
|
|
Just checked the database and the data contains ÅÄÖ (after I input ÅÄÖ in Button title under Content management) So the database doesn't seem to care about that it is set to utf8_general_ci collation.
|
|
 |
|
 |
|
Filip
|
Post subject: Re: Charset problem Posted: Wed Oct 21, 2009 6:42 pm |
|
Joined: Tue Oct 13, 2009 12:23 pm Posts: 20
|
|
OK so the fix was to change meta tag in manager.php to iso-8859-1. A suggestion for next release is if you could autogenerate all meta tag charsets based on the one in config.php. Just a thought...
Thanks, Filip
|
|
 |
|
 |
|
ImpressPages
|
Post subject: Re: Charset problem Posted: Wed Oct 21, 2009 7:10 pm |
|
 |
| Site Admin |
Joined: Tue Apr 28, 2009 7:21 am Posts: 55
|
Yes. That could be the reason. But can you answer one question for me? Do you can write required special characters on demo site http://www.impresspages.org/demo-page/ ? Because it will be strange for me if you could't. And if you can, then why do you decided to switch to latin?
|
|
 |
|
 |
|
Filip
|
Post subject: Re: Charset problem Posted: Wed Oct 21, 2009 8:48 pm |
|
Joined: Tue Oct 13, 2009 12:23 pm Posts: 20
|
|
OK. You are right. I was wrong. ÅÄÖ works with UTF-8. The problem was that I had latin1 in my template already and I then assumed I needed latin everywhere. Changing everything back to UTF-8 solved the problem. Thanks for your help!
|
|
 |
|
 |
|