M
M
Maxim Ivanov2021-03-07 15:12:57
HTML
Maxim Ivanov, 2021-03-07 15:12:57

W3C validator errors. The character encoding was not declared. Proceeding using windows-1252 (and two more)?

When I upload files to github and insert the github pages link on the W3C validator site, there are no errors (not even warnings in this direction). But when I uploaded the site to a free hosting, I made three mistakes and I can’t understand why. Maybe it's "hosting feature"?

1) The character encoding was not declared. Proceeding using windows-1252
2) Start tag seen without seeing a doctype first. Expected
3) Element head is missing a required instance of child element title

6044c2a951c3b724359940.png
6044c33e417c0011501722.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2021-03-07
@Rsa97

Turn on the source option in the validator and you will see that the hosting does not give your page, but its own.

<html>
  <body>
    <script type="text/javascript" src="/aes.js" ></script>
    <script>
      function toNumbers(d){var e=[];d.replace(/(..)/g,function(d){e.push(parseInt(d,16))});return e}function toHex(){for(var d=[],d=1==arguments.length&&arguments[0].constructor==Array?arguments[0]:arguments,e="",f=0;f<d.length;f++)e+=(16>d[f]?"0":"")+d[f].toString(16);return e.toLowerCase()}var a=toNumbers("f655ba9d09a112d4968c63579db590b4"),b=toNumbers("98344c2eee86c3994890592585b49f80"),c=toNumbers("13f777ffb6ec58060eb97b767cef885c");document.cookie="__test="+toHex(slowAES.decrypt(c,2,a,b))+"; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/"; location.href="http://mediabazartest.byethost7.com/index.html?i=1";
    </script>
    <noscript>This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support</noscript>
  </body>
</html>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question