Answer the question
In order to leave comments, you need to log in
What is the equivalent of AddDefaultCharset for php-fpm?
We transfer the project to nginx + php-fpm
There were problems with the encoding, earlier in the settings for apache in .htaccess the line was written:
AddDefaultCharset windows-1251
How to correctly register and where is a similar setting for php-fpm?
Answer the question
In order to leave comments, you need to log in
Send normal titles like Content-Type: text/html; charset=utf-8
AND add meta tags: <meta charset="utf-8">
And you don't need any AddDefaultCharset
.
PS Well, it’s better to forget windows-1251, because we have 2016 after all :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question