You are not logged in.
So I've added the following to /etc/httpd/conf/httpd.conf:
AddDefaultCharset utf-8Still firefox reports that my phpfiles are using ISO-8859-1 even though defaulcharset and the files encoding is utf-8.
What am I doing wrong? I converted the file to UTF-8 with notepad++.
Problem is that Å Ä Ö don't work properly. They never work when echoed from mysql.
Last edited by XAM (2010-07-02 11:49:19)
Offline
Have you set <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> in html header?
Offline
> They never work when echoed from mysql.
Are the files generated dynamically? If so, you should check the mysql part.
Offline
Have you set <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> in html header?
Yes, but I've created a phpfile with the following code, nothing else is in the file.
<?php echo'Å Ä Ö'; ?>Does not work, it echoes out wierd characters.
> They never work when echoed from mysql.
Are the files generated dynamically? If so, you should check the mysql part.
mysql is set to utf-8.
Offline
So I've got Å Ä Ö working inside apache now. But they still look wierd when echoed from mysql.
I've setup my database to utf8_general_ci, did not work.
Any ideas?
Offline
Did you ask mysql / php gurus for help? I've seen a bunch of similar threads some time ago:
http://stackoverflow.com/questions/1317 … y-php-apps
Offline