A local search, a local search for Chinese transcoding, and a Chinese keyword changed to u8e4b880 encoding. For example, after & quot; 1 & quot; is converted to & quot; u8e4b880 & quot; & nbsp; & quot; 2 & quot; is converted to a local search by & quo, chinese transcoding problems
For a local search, the Chinese keyword is changed to u8e4b880 encoding.
For example, "1" indicates "u8e4b880" after conversion ";
"2" after conversion is "u8e4ba8c ";
What functions are implemented through?
------ Solution --------------------
E4b880 is the hexadecimal representation of the utft-8 code of "1"
E4ba8c is the hexadecimal representation of the utft-8 code of "two"
U8 indicates the UTF-8 encoded value.
If your string is gbk encoded
$ S = "2 ";
$ S = iconv ('gbk', 'utf-8', $ s );
$ Ch = 'u8'. current (unpack ('H * ', $ s ));
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.