Answer the question
In order to leave comments, you need to log in
Problem with encoding, ajax and nginx?
Good afternoon. Moved a CMS site from a local apache server to a dedicated nginx server. There was a problem with working out scripts - all the content output through them was given with the wrong encoding (squares were shown). I saw somewhere that the charset windows-1251 directive in the config should help, but I already had it specified and does not help. There are no such problems with other sites on the same server.
I understand that the problem is somewhere in the scripts, somewhere the encoding is not explicitly specified or the encoding is incorrect. Is there a tool in nginx to force the required encoding for the entire site and all scripts in particular? Something like AddDefaultCharset windows-1251 for apache/
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question