Re: UTF-8 and question marks
- From: "John Stivenson" <john_stivenson@xxxxxxxxx>
- Date: 6 Mar 2006 09:23:03 -0800
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.
.
- Follow-Ups:
- Re: UTF-8 and question marks
- From: mannerboy
- Re: UTF-8 and question marks
- References:
- UTF-8 and question marks
- From: John Stivenson
- Re: UTF-8 and question marks
- From: Andy Hassall
- UTF-8 and question marks
- Prev by Date: Re: Restricting Access to Menu Options
- Next by Date: Re: Change user for fopen
- Previous by thread: Re: UTF-8 and question marks
- Next by thread: Re: UTF-8 and question marks
- Index(es):
Relevant Pages
|