Reply to Re: PHP + Unicode

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация