N
N
nikita-slb2016-09-30 22:05:43
PHP
nikita-slb, 2016-09-30 22:05:43

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

1 answer(s)
N
Nazar Mokrinsky, 2016-09-30
@nazarpc

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 question

Ask a Question

731 491 924 answers to any question