JSON
'e, the encoding of everything on website is cp1251
. In order not to reinvent the wheel using jQuery
.IE
. IE
my seventh version, I haven't checked it in others yet, but in my opinion there’s the same feature.jQuery
returns parsererror
. Having rummaged deeper, I found out that the transport drops out with an access when accessing the responseText
field and the responseXML
field contains an empty document (which, of course, the data is transmitted by text).utf-8
IE
refuses to work absolutely;application/ajax
and application/x-javascript
also do not rule.Content-type: text/plain; charset=utf-8
Content-type: text/plain; charset=utf-8
and recode everything in utf-8
(good with iconv
it came out in three lines).IE
not friendly with the Windows cp1251
encoding, but I figured it out for now;)cp1251
encoding with windows-1251
:) Thanks for the advice.Source: https://habr.com/ru/post/29265/
All Articles