Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- PHP + Unicode
August 26, 2005, 5:27 am
rate this thread
I have saved some data in a MySQL database as UTF-8 format. But when I
to read the data using PHP, the webpage gave me all the "?"s. How to
multilingual data correctly in PHP?
I believe there must be a way since I can see the words in UTF-8 in the
phpmyadmin interface. phpmyadmin is also coded in PHP and if it can do
there must be a way to read multilingual data properly.
Anyone knows how to do it? Thanks a lot!
Re: PHP + Unicode
Have you set the appropriate headers to tell browser what charset it should
use to decode? It may not be the solution but it's a necessary step. Rather
Content-Type: text/html; charset=ISO-8859-1
tell it's UTF-8.
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group