A
A
Andrew2016-09-22 22:16:47
PHP
Andrew, 2016-09-22 22:16:47

How to convert characters \UXXXX?

How to convert strings like "\u043f\u043e\u0441\u0442\u0443\u043f\u043b\" into russian characters in php?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2016-09-22
@DROOMBLE

wangyu: is this json? guessed?
if not, then you can

echo json_decode('{"x":"\u043f\u043e\u0441\u0442\u0443\u043f\u043b"}')->x;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question