Answer the question
In order to leave comments, you need to log in
Is it possible to change the encoding of the contents of a variable in JavaScript?
The question is the following. There is a variable for example name = 'Vasya'; "Vasya" in cp-1251 encoding. Is there any function that can change the contents of a variable to UTF-8 encoding, just if my memory serves me, for example, in C ++ there seems to be such an opportunity. Does such a thing exist in JS?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question