P
P
Pasha Kurbatsky2015-08-31 17:50:40
JavaScript
Pasha Kurbatsky, 2015-08-31 17:50:40

How to convert unicode chars to plain text?

Good day, there is a string with unicode characters, is there a ready way to convert it to plain text?
From this

"\u0418\u0432\u0430\u043d \u0412\u0430\u0441\u0438\u043b\u044c\u0435\u0432\u0438\u0447 \u043c\u0435\u043d\u044f\u0435\u0442 \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u044e

In it
Иван Васильевич меняет профессию.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stalker_RED, 2015-08-31
@kurbpavel

decodeURIComponent("\u0418\u0432\u0430\u043d \u0412\u0430\u0441\u0438\u043b\u044c\u0435\u0432\u0438\u0447 \u043c\u0435\u043d\u044f\u0435\u0442 \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u044e")

Demo: jsfiddle.net/nzo6wfz1

L
lnked, 2015-08-31
@lnked

json_encode(
  'Иван Васильевич меняет профессию.', 64 | 256
)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question