M
M
misc12016-08-16 22:00:06
JavaScript
misc1, 2016-08-16 22:00:06

Does jQuery change the encoding itself?

For unknown reasons JQuery seems to change the encoding:

div = '.container';
container = $(div);
var = '<a class="class">Ответить</a>';
container.append(var);

Thus, a link with the text "Reply" is obtained.
div = '.container';
container = $(div);
var = '<a class="class">Ответить</a>';
var = $(var);
container.append(var);

And so - a link with the text "Ответить".
What can be done about it to leave var = $(var);?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Dyrkov, 2016-08-16
@misc1

jQuery does not have such super abilities) Look in what encoding the file itself is opened in your browser and in what encoding the file with js is different for you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question