M
M
mifkys2011-10-09 21:03:24
Nginx
mifkys, 2011-10-09 21:03:24

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

2 answer(s)
J
jov, 2011-10-09
@jov

Specify Charset in Location, well, or at the level of the entire server

I
iTs, 2011-10-10
@iTs

> (squares were shown)
> I understand that the problem is somewhere in the
encodeURI scripts?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question