Home >Backend Development >PHP Tutorial >这种编码如何用php解析出来?xE5xBDxA9xE4xBAx91xE3x81xACxE7x88xB1xE6x83x85

这种编码如何用php解析出来?xE5xBDxA9xE4xBAx91xE3x81xACxE7x88xB1xE6x83x85

WBOY
WBOYOriginal
2016-06-13 12:20:361392browse

这种编码怎么用php解析出来?\xE5\xBD\xA9\xE4\xBA\x91\xE3\x81\xAC\xE7\x88\xB1\xE6\x83\x85
小弟只知道是一个个十六进制的东西。。。具体怎么才能转成对应中文呢。。
\xE5\xBD\xA9\xE4\xBA\x91\xE3\x81\xAC\xE7\x88\xB1\xE6\x83\x85
------解决思路----------------------

header('Content-type: text/html;charset=utf-8');<br /><br />echo "\xE5\xBD\xA9\xE4\xBA\x91\xE3\x81\xAC\xE7\x88\xB1\xE6\x83\x85";//彩云ぬ爱情<br /><br />$s = '\xE5\xBD\xA9\xE4\xBA\x91\xE3\x81\xAC\xE7\x88\xB1\xE6\x83\x85';<br />echo hex2bin(str_replace('\\x', '', $s));//彩云ぬ爱情

Statement:
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