D
D
DarkMatter2016-03-02 18:50:29
PHP
DarkMatter, 2016-03-02 18:50:29

Why flies encoding from htaccess?

In the VirtualHost domain config on the server:
AddDefaultCharset off
I upload the site on static files. The file is ANSI encoded in meta 1251 (yes, I know that utf8 is better, but it happened historically). Everything works correctly.
I upload htaccess with the following content:

RemoveHandler .html .htm .php
AddType application/x-httpd-php .htm .html .php
DirectoryIndex index.php index.html index.htm
Options All -Indexes

The text on the site flies like this:
20615ac8f7a144019323f4252de1740a.png
Why are there no encoding directives in htaccess?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Burov, 2016-03-02
@BuriK666

AddDefaultCharset WINDOWS-1251

S
SilverSlice, 2016-03-03
@SilverSlice

If php version >= 5.6, then default_charset might be the problem .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question