How to decode something beginning with “\u” with PHP
e.g.
\u4f60\u5df2\u7ecf\u6dfb\u52a0\u4e86\u6b64\u8bdd\u9898
thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
With PHP 5.4/intl:
Output:
For versions before, you can adapt this answer.
Note that the answers here and here don’t deal with supplementary characters (those that cannot be represented with one code unit in UTF-16).