index.html , which, when started locally (Chrome, IE), is displayed correctly.
When downloading to a virtual server, and opening through Chrome – Abrakadabra.
Through IE – everything is OK (probably IE adjusts to the necessary encoding, although in the encoding the same –
head there is a string:
& lt; meta charset = "UTF-8" & gt;
But wget returns:
Charset = CP1251 . Why?
Perhaps you need to change something on the server? Linux server, UHTTPD
Answer 1, Authority 100%
Check out what encoding the
index.html document itself: Open it for example in
NotePad ++ Coding tab and select
BOM . After reboot to the server.
Answer 2, Authority 100%
The problem in the encoding given by the server in the headlines (Content-Type). It can be changed in the server configuration file (for apache httpd.conf), or in cases if it is not available on hosting or supports sites in different encodings, then you need to use the
.htaccess file in the root folder of your site (where index.html, etc.)
If there is no .htaccess file, just create it. It needs to specify a string: