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