Posted by Alvaro G Vicario on 08/26/05 09:56
*** willwudan@gmail.com wrote/escribió (25 Aug 2005 22:27:20 -0700):
> I have saved some data in a MySQL database as UTF-8 format. But when I
> tried
> to read the data using PHP, the webpage gave me all the "?"s. How to
> read it
> multilingual data correctly in PHP?
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
than:
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
--
[Back to original message]
|