Css file not loading

For some reason, this html page does not load the css file and appears as gibberish in ff3.6.6 on mac, great in Safari. http://www.mainstayprojects.com/teardrop.html

The same code works fine on another page: www.mainstayprojects.com/

The path to the css file is correct, and all html and css are checked. I do not understand what to do next!

Help!

+3
source share
2 answers

The HTML document is encoded as UTF-16, but the server claims to be ISO-8859-1, while CSS also looks like ISO-8859-1, but the server has nothing to say about the encoding it uses.

To solve this problem:

+5

, , .

, DOCTYPE, , , DOCTYPE ( ):

character "þ" not allowed in prolog

XHTML HTML- utf-16

<meta http-equiv="Content-Type" content="text/html; charset=utf-16" /> 

HTML- utf-8

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

UTF-8 129, . , , .

CSS . , .

@charset "utf-16";
+3

Source: https://habr.com/ru/post/1755150/


All Articles