Special chars & UTF-8: sometimes ok, sometimes wrong
Posted: Thu Oct 18, 2007 10:22 am
Hi.
Working with PHP 4.4 and mySQL 4.1, I've got some texts stored in a UTF-8 table with special chars.
I serve a UTF-8 header within my HTML, Apache is configured to serve UTF-8 and PHP scripts are saved in UTF-8 charset.
However, sometimes I get 'España' and other times 'Espa�a'. The difference? I press F5 (Refresh) bottom on my web browser (I use Firefox and Internet Explorer).
Any similar experience?
Working with PHP 4.4 and mySQL 4.1, I've got some texts stored in a UTF-8 table with special chars.
I serve a UTF-8 header within my HTML, Apache is configured to serve UTF-8 and PHP scripts are saved in UTF-8 charset.
However, sometimes I get 'España' and other times 'Espa�a'. The difference? I press F5 (Refresh) bottom on my web browser (I use Firefox and Internet Explorer).
Any similar experience?