M
M
Mr_Sergo2021-01-19 20:24:18
JavaScript
Mr_Sergo, 2021-01-19 20:24:18

Why are Russian characters not displayed in the server response?

Welcome all!

This is how a string from the array of the standard response of the VK server to a request for a list of videos looks like

6007143e3614b719099111.png
Russian characters are displayed correctly

And this is how a string from the array looks like if it is output to the console or to a page

600714697ab9b568237838.png

What I just didn’t do, I just can’t understand and fix it so that Russian characters would be displayed correctly . And I changed the encoding of the js-file and tried to slip other headers, nothing helps. I make the request using the fetch() method. Tell me what's the problem?

PS: If this is important, then this is not a VKontakte api, this is a regular request via tampermonkey from the VK page

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