php怎么将接受到的字节流转为Unicode编码

WBOY
Release: 2016-06-13 12:56:58
Original
897 people have browsed it

php如何将接受到的字节流转为Unicode编码啊
我在C#将汉字的Unicode编码转为字节流,然后POST到站点,但是php接收后总是显示问号,如何将接受到的字节流转为Unicode编码啊???

php c#
------解决方案--------------------
显示的编码不对,你可能用了ansi的编码
------解决方案--------------------
iconv('ucs-2', 'utf-8', $string)
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!