V
V
Vlad2019-08-19 19:23:14
AJAX
Vlad, 2019-08-19 19:23:14

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 question

Ask a Question

731 491 924 answers to any question