P
P
Petya Anisimov2014-09-01 19:14:12
JavaScript
Petya Anisimov, 2014-09-01 19:14:12

What is format translation?

What is a format translation? Which is also \u000c

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2014-09-01
@petanisimov

There is Unicode, and there is a format for its recording. The format you provided is escaped UTF-8, where \u indicates that it is a unicode character, and 000C is the character number in hex.
https://mathiasbynens.be/notes/javascript-escapes

E
Evgeny Petrov, 2014-09-01
@Petroveg

The code for this character clearly indicates that it is used as a sign of the start of a new page .
You have encountered UTF-16. On the web, encoding in UTF-16 is being abandoned and it is recommended to use encodeURIComponent() instead of escape() (works with UTF-8).
console.log(unescape('%u000c'));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question