I have some php
files that have utf-8 characters in. The files are saved with the utf-8
encoding. I am also specifically setting the page charset
to UTF-8. Browser shows them correctly if directly output in the source code. But when getting field data from my MySQL
tables (using mysqli
connection), question marks are displayed instead of content. Does anyone know what it could be? I am assuming it has to do with the database interaction?
HTTP Response header:
HTTP/1.1 200 OK
Date: Mon, 18 Feb 2013 23:05:13 GMT
Server: Apache/2.2.22 (Unix) DAV/2 PHP/5.4.9
X-Powered-By: PHP/5.4.9
Content-Length: 2161
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8