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

这种编码怎么用php解析出来?xE5xBDxA9xE4xBAx91xE3x81xACxE7x88xB1xE6x83x85

WBOY
Release: 2016-06-23 13:33:50
Original
1242 people have browsed it

小弟只知道是一个个十六进制的东西。。。具体怎么才能转成对应中文呢。。
\xE5\xBD\xA9\xE4\xBA\x91\xE3\x81\xAC\xE7\x88\xB1\xE6\x83\x85


回复讨论(解决方案)

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

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