You are here: Re: UTF-8 and question marks « PHP Programming Language « IT news, forums, messages
Re: UTF-8 and question marks

Posted by John Stivenson on 03/06/06 19:23

I set content type to UTF-8 using META tag. In response header the
browser gets only "Content-Type: text/html".

However, I think that the problem isn't in content type. I can type
UTF-8 encoded text between HTML tags and it is displayed correctly in
browser. I can also use "echo 'some UTF-8 encoded text';" and all is OK
again. But if I read a string from database and try to echo it I get
only ??????.

I use these lines to read from database:
$res = mysql_query($query);
$row = mysql_fetch_assoc($row);

Sorry, but I haven't yet uploaded my page to a public web server.

 

Navigation:

[Reply to this 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

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