Answer the question
In order to leave comments, you need to log in
Incorrect encoding during Ajax request - how to fix it?
I make an Ajax request - I get data in the wrong encoding.
added to javascript did not help:
contentType: "application/x-www-form-urlencoded;charset=windows-1251",
added to the php file to which the request goes - the coding has become better, but still not the same:
header(' content-type: text/html; charset=windows-1251');
How to fix?
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