I
I
Ivan Ivanov2017-09-28 13:09:36
JavaScript
Ivan Ivanov, 2017-09-28 13:09:36

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

1 answer(s)
A
Alexander, 2017-09-28
@ZZiliST

There is no such thing in bare JS, but you can google libraries or code for specific encodings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question