Fix for PHP/Apache2.4 not to force UTF-8 encoding

In fact it is PHP, that is sending extra header, making browser think, that page is in UTF8. That is wrong. To disable this edit php.in (/usr/local/lib/php.ini), find the following line and set empty value. If line is commented – you should uncomment it!

find:

default_charset

set:

default_charset = ""

Of course don’t forget to restart apache and php, if it runs as through FPM manager.

Leave a Reply

Your email address will not be published. Required fields are marked *