Page 1 of 1

Character encoding problem

Posted: Wed Oct 16, 2013 9:51 am
by rkv
I recently installed phpmyfaq 2.8.2 on our web server running Apache/2.2.16 (Debian). Installation was quite straightforward and the pages work ok.
I created the Mysql database as instructed to use utf-8 character encoding and chose to use the finnish language pack for the pages.
Now, when I look at the front page, the accented characters (eg. äöå) are not shown correctly but instead shown as two characters like ä.
The web page received by the browser correctly states the page to use utf-8 encoding (by <meta charset="utf-8"> in the header), but for some reason my browsers (Firefox 24, Chromium) think that the encoding is windows-1252 (shown in FF: Tools - Page info) and displays the utf character with 2 symbols.
Also, trying to input accented characters via the admin interface is not working, the ä's are not entered at all into the database.

Any idea why? What configuration mistake did I do?

Re: Character encoding problem

Posted: Thu Oct 17, 2013 8:08 pm
by Thorsten
Hi,

can you point me to your FAQ? Did you change the templates? On which platform did you installed phpMyFAQ?

bye
Thorsten

Re: Character encoding problem

Posted: Fri Oct 18, 2013 6:11 pm
by rkv
Hi, sorry for the delay, been busy with other...
the address is http://www.myrskyt.org/solar/phpmyfaq/
The platform is a hosted Debian linux running kernel Linux pp2rk 2.6.32-5-amd64 #1 SMP Fri May 10 08:43:19 UTC 2013 x86_64 GNU/Linux, Apache is of version 2.2.16 as told, Mysql is of version "mysql Ver 14.14 Distrib 5.1.66, for debian-linux-gnu (x86_64) using readline 6.1"

Re: Character encoding problem

Posted: Sun Oct 20, 2013 5:08 pm
by Thorsten
Hi,

your Apache is mis-configured, it serves your code with the charset ISO-8859-1 although phpMyFAQ sends UTF-8. That breaks your umlauts.

bye
Thorsten

Re: Character encoding problem

Posted: Mon Oct 21, 2013 4:10 pm
by rkv
I checked the settings, and that virtual server has indeed been configured with AddDefaultCharset ISO-8859-1 for some reason I just can't remember any more. Too obvious:), just did not pjump into my mind.
I have to change settings or move the faq to another virtual server, whicever is easier to do.

Thanks.

Re: Character encoding problem

Posted: Tue Jan 21, 2014 6:39 am
by faris
Thanks for your reply. Do you have any suggestions as to what the code should be for the htaccess?

________________________________________
Chess-Rivals.com Play Online Live Chess Free 3d Against Computer

Re: Character encoding problem

Posted: Sat Jan 25, 2014 7:44 am
by Thorsten
Hi,

it's straitgh forward: http://httpd.apache.org/docs/2.2/mod/co ... ultcharset

bye
Thorsten