S
S
SergZay2015-11-04 18:47:55
JavaScript
SergZay, 2015-11-04 18:47:55

How to encode js UTF-8->windows-1251?

There is an html page in windows-1251 encoding.
I insert the script in utf-8 and there are bugs in the site.
I tried to translate js, but sublime gives out that some characters cannot be recoded.
How can this issue be resolved. How to insert into a file?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
riot26, 2015-11-04
@riot26

<script src="myscripts.js" charset="UTF-8"></script>

V
Vladimir Gorbunov, 2015-11-04
@LaBeuof

Change html encoding to UTF-8. both in the editor and specify<meta charset="utf-8">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question