How do I set Character Encoding to UTF-8 for default.html?

前端 未结 5 1527
庸人自扰
庸人自扰 2020-12-01 13:05

I spent the last few hours getting my website to validate HTML 4.01 Strict and I actually have succeeded in that but there is still one warning which I can\'t get rid of. Th

5条回答
  •  执念已碎
    2020-12-01 13:18

    Can you remove AddDefaultCharset from .htaccess and check the encoding? I saved the HTML source of your webpage and opened it. Encoding was detected as UTF-8. However, on viewing the same webpage served by your webserver, the encoding is ISO-8859-1. That is why I suggest removal of the former redundant rule.

提交回复
热议问题