U
U
uuushka2016-12-13 11:29:08
JavaScript
uuushka, 2016-12-13 11:29:08

Why is the encoding crooked when compiling .js files?

Hello!
There are a couple of packages that need to be built on Jenkins.
In package.json to compile this script: "rm -rf lib && mkdir lib && cp -a src/* lib/ && babel --optional runtime -d lib/ src/".
.babelrc:
{
"presets": ["react", "es2015", "stage-0"]
}
So, in lib, Russian words are transformed into "\u0412\u435..." and so on. ...
Any ideas?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Aksentiev, 2016-12-13
@Sanasol

this is the normal form of Cyrillic in JS/JSON

P
Pavel, 2016-12-13
@PavelFokeev

This is not a "curve encoding", these are Unicode codes.

W
WQP, 2016-12-13
@WQP

This is unicode, everything is fine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question