A simple approach would be to turn your string into double quotes and let json_decode
convert the escape strings \u0000
. (Which is Javascript string syntax.)
$str = json_decode("\"$str\"");
These seem to be Russian letters:
(This is already UTF-8 when json_decode
returns it.)
mario source share