Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 现场发布_Html - Fatal编程技术网

Html 现场发布

Html 现场发布,html,Html,我写的不必担心,但在我的现场网站上,文本显示了€™ 为什么? 即使在本地,它也能正常显示,但在现场,它无法正常工作。请告诉我原因。这就是UTF-8编码字符'(实体:)在使用错误的字符编码,特别是西方(Windows 1252)时的样子 您需要确保Web服务器以正确的编码发送它,或者。如果您正在使用html5,请在您的头标签中使用: <meta charset="UTF-8"> 如果您一直使用html4: <meta http-equiv="Content-type" co

我写的不必担心,但在我的现场网站上,文本显示了€™ 为什么?
即使在本地,它也能正常显示,但在现场,它无法正常工作。请告诉我原因。

这就是UTF-8编码字符
'
(实体:
)在使用错误的字符编码,特别是西方(Windows 1252)时的样子

您需要确保Web服务器以正确的编码发送它,或者。如果您正在使用html5,请在您的头标签中使用:

<meta charset="UTF-8">

如果您一直使用html4:

<meta http-equiv="Content-type" content="text/html;charset=UTF-8">

或者,如果您提供的是任何口味的有效XHTML,请将其放在文档顶部:

<?xml version="1.0" encoding="UTF-8"?>


页面编码设置是否正确?这看起来像是字符编码问题。如果没有更多信息,我们无法提出修复建议。