How does php transfer received bytes to Unicode encoding?
Source: Internet
Author: User
How does php convert received bytes to Unicode encoding? in C #, I convert the Unicode encoding of Chinese characters into byte streams and then POST them to the site. However, after receiving these characters, php always displays question marks, how can I transfer received bytes to Unicode encoding ??? How does php transfer received bytes to Unicode encoding?
In C #, I converted the Unicode encoding of Chinese characters into byte streams and then POST them to the site. However, after receiving the code, php always displays question marks. how can I transfer the received bytes to Unicode encoding ??? Php c #
------ Solution --------------------
The displayed encoding is incorrect. you may have used ansi encoding.
------ Solution --------------------
Iconv ('ucs-2', 'utf-8', $ string)
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.