如果我使用UTF-8字符集,我需要为特殊字符使用HTML实体吗? [英] Do I need to use HTML entities for special characters if I'm using the UTF-8 charset?
本文介绍了如果我使用UTF-8字符集,我需要为特殊字符使用HTML实体吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在处理的网站是从ISO切换。如果HTML字符集设置为UTF-8,我还需要替换©
,é
,<$
A site I'm working on is switching from ISO. If the HTML character set is set to UTF-8, do I still need to replace ©
, é
, …
, etc with the appropriate HTML entity?
推荐答案
没有,像
但是注意一些事情仍然是实体因为它们在HTML(<
和>
)中有特殊的含义, code>& gt; 和& lt;
,如果您想在文本中使用它们)
But note that some things still have to be entities because they have a special meaning in HTML ( <
and >
for example, which should still be replaced with >
and <
if you want to use them in your text)
这篇关于如果我使用UTF-8字符集,我需要为特殊字符使用HTML实体吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文