I get the HEX codepoint from a UTF-8 string via json_encode
as
substr(json_encode($str), 1, -1);
However, json_encode
does not convert the characters at the ASCII range. For example,
For
sÆs
I get
s\u00C6s
but I want to get
\u0073\u00C6\u0073