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

Posted by Andy Hassall on 03/01/06 00:57

On 28 Feb 2006 14:50:07 -0800, "John Stivenson" <john_stivenson@yahoo.com>
wrote:

>I'm using PHP 4.3.10 & MySQL 4.1.9.
>
>When I read UTF-8 string from database and echo it to the page I get
>only question marks. The number of question marks is equal to the real
>length of the string (not doubled as I would expect).
>
>Where is the problem?

Have you set the page to be encoded in UTF-8 with a Content-type header (not
just a <meta> tag)?

Can you post a URL to the page (which would help in working out what is adding
the question marks - whether it's corrupted before it goes out, or whether the
browser is unable to show the characters due to an incorrect character set
encoding header).

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

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

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