Can someone help me with a character set/encoding problem?
I am using a MySQL database with PHP to store the name "Bedrich". Notice the
letter "r" in the name. It has an accent, just as it does in the following
Wikipedia entry: http://en.wikipedia.org/wiki/Bedrich_Smetana.
On my PHP-generated HTML page it's displayed as "Bed?ich". What am I doing
wrong?
MySQL is configured to use UTF-8, and I can see that it's working when I
view the data through phpMyAdmin.
My web page contains the line "<meta http-equiv="Content-Type"
content="text/html; charset=utf-8" />".
Should I be using multibyte strings in my PHP code? Any help would be
appreciated.
Thanks.
I am using a MySQL database with PHP to store the name "Bedrich". Notice the
letter "r" in the name. It has an accent, just as it does in the following
Wikipedia entry: http://en.wikipedia.org/wiki/Bedrich_Smetana.
On my PHP-generated HTML page it's displayed as "Bed?ich". What am I doing
wrong?
MySQL is configured to use UTF-8, and I can see that it's working when I
view the data through phpMyAdmin.
My web page contains the line "<meta http-equiv="Content-Type"
content="text/html; charset=utf-8" />".
Should I be using multibyte strings in my PHP code? Any help would be
appreciated.
Thanks.
Comment