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]
|