\ U6784 category Chinese character conversion

Source: Internet
Author: User
Conversion of \ u6784 type Chinese characters \ u6784 and how to transfer Chinese characters (convert to Chinese characters that can be understood by a person) through php and js, for example, $ string = '\ u6784 ', echo & nbsp; json_decode ('"\ u6784"'); // Structure, reference: ech \ u6784 conversion of Chinese characters
How to transfer Chinese characters such as \ u6784 through php and js (convert to a Chinese character that can be understood by a person), for example, $ string = '\ u6784'
------ Solution --------------------
Echo json_decode ('"\ u6784"'); // Structure

------ Solution --------------------
Reference:
Echo json_decode ('"\ u6784"'); // Structure


Are you sure this is feasible? The result returned by my test is null.
My practice is to construct a json string and decode

$ String = '\ u6784 ';
$ Json_str = '{"str": "'. $ string .'"}';
Var_dump (json_decode ($ json_str, 1 ));


------ Solution --------------------
Do not doubt people's sincerity
The running result of your code:
'Str' => string ''(length = 3)

------ Solution --------------------
Use json_decode to solve Unicode height

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.