How to correctly change the encoding when using ajax? I have questions instead of Russian letters. I have windows-1251 encoding.

    1 answer 1

    If you have access to the page where the request goes, then by itself change the encoding right there.

    In general, it is better to install UTF-8 everywhere.

    • I do not remember exactly, does UTF-8 understand Russian? - Svyatoslav
    • Sorry, you want to say that UTF-8 does not work with the Russian language? - Shevsky
    • <meta http-equiv = "Content-Type" content = "text / html; charset = UTF-8" /> Maybe doing something wrong, but I have questions . - Svyatoslav
    • Set the encoding of the file as UTF-8. - Shevsky