You probably just need to make sure both the database table you are storing data is set to store in UTF-8 as well as the html page that displays the data should also be explicitly set to UTF-8 encoding.
阁下的“URL”应用(见kphp.com/look/phpquery-jquery-port-to-php/1758)表明(通过火焰燃烧)
Response Headers
Date Sat, 14 Jan 2012 06:26:31 GMT
Server Apache/2.2.19 (Unix) mod_ssl/2.2.19 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
X-Powered-By PHP/5.2.17
Keep-Alive timeout=5, max=100
Connection Keep-Alive
Transfer-Encoding chunked
Content-Type text/html
但如果UTF-8的编码产出正确,则显示最后一行是行的。
Content-Type text/html; charset=UTF-8
可通过在“欧洲开发机构”文件中输出一个元件,对你的超文本进行编码:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
或者你能够用购买力平价来确定这一点:
header ( Content-type: text/html; charset=utf-8 );