不支持特殊字符 [英] Special characters are not supported

查看:154
本文介绍了不支持特殊字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在Firefox和IE中显示’,é等特殊字符。但是本地服务器支持这些字符。

I am having problem to display the special characters like ’, é in Firefox and IE. But these characters are supported for the local server.

我使用了以下

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

有人可以告诉我可能是什么吗?

Can anyone suggest me what the might be? Thanks in advance.

推荐答案

您已将字符集设置为 iso-8859-1 -您确定它们是在HTML中编码的方式吗?

You've set the charset to iso-8859-1 - are you sure that's how they're encoded in your HTML?

在Firefox中,尝试使用视图->字符编码更改字符集(对于您的页面,应选择西方(ISO-8859-1)),然后查看如果与其他字符编码一起使用。如果是这样,请考虑将HTML重新编码为UTF-8,或更改标记中的字符集

In Firefox, try changing the charset using View -> Character Encoding (for your page it should have "Western (ISO-8859-1)" selected), and see if it works with another character encoding. If it does, consider either re-encoding your HTML into UTF-8, or changing the charset in your meta tag.

这篇关于不支持特殊字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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