Special characters are not read from the JSONP file correctly

I have some JSONP files that have data such as: "ActiveLabel":"Site Survey Exact-Built™"(note the char).

When I read the data from the file, creating a script tag and using it to evaluate the JSONP file, I get where it should be.

I tried installing the charset="UTF-8"script tags that I generate to load the JSONP in the tags, but that does not help.

Any idea what I can do to fix this?

+3
source share
1 answer

I used charset="Cp1252"for the elements <script>that I created, and it worked. Got the correct encoding.

+3
source

Source: https://habr.com/ru/post/1786560/