一些字符,如£显示是问号 [英] some characters like £ show up is question mark

查看:126
本文介绍了一些字符,如£显示是问号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不知道为什么在这个页面(我的测试网站) http://www.prxa.info/ 一些字符像一个£标志应该是一个黑色的钻石,里面有问号。

Ok not sure why but on this page here (my test site) http://www.prxa.info/ some characters like a £ sign should up as a black diamond with question mark inside.

我知道我必须做一些错误的字符集,但不确定什么?数据库设置为UTF8,页面编码也是如此?

I know I must be doing something wrong with a character set but not sure what? Database is set to UTF8 and so is the page encoding?

推荐答案

查看HTML源码(至少在Firefox提供) ,该字符作为替代字符U + FFFD发送。您需要确保不会从编辑器通过数据库到网站的任何更改编码。确保您用于将数据插入数据库的任何数据库客户端也使用UTF8。

Looking at the HTML source (at least as Firefox delivers it), the character is being delivered as a replacement character U+FFFD. You'll need to ensure that you don't change encodings at any point from editor via database to website. Make sure whatever database client you are using to insert data into the database is also using UTF8.

这篇关于一些字符,如£显示是问号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆