Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
php中特殊字符的解码_Php_Regex_Special Characters - Fatal编程技术网

php中特殊字符的解码

php中特殊字符的解码,php,regex,special-characters,Php,Regex,Special Characters,请告诉我。如何解码飯在php中 我在生成XML时得到这个值 我已经使用了html\u entity\u Decode(),htmlspecialchars\u Decode(),但无法对其进行解码 这不是汉字。在我的网站上,这是装饰项目。我得到的是D飯 cor项目 有人知道如何解码吗。没有任何东西可以解码。它是的HTML值飯. 就像 <?php echo "&#x98EF;"; 我认为它是汉字,所以可能使用正确的字符编码就能解决它。它将是什么以及如何使用它。请让我知道

请告诉我。如何解码
在php中

我在生成XML时得到这个值

我已经使用了
html\u entity\u Decode()
htmlspecialchars\u Decode()
,但无法对其进行解码

这不是汉字。在我的网站上,这是装饰项目。我得到的是D飯 cor项目


有人知道如何解码吗。

没有任何东西可以解码。它是的HTML值飯. 就像

<?php
echo "&#x98EF;";

我认为它是汉字,所以可能使用正确的字符编码就能解决它。它将是什么以及如何使用它。请让我知道在这种情况下,你想做什么?只是回音还是别的什么?@bhunnesh Gupta显示您的xml
html\u entity\u decode
工作正常。看不,这不是中国人的性格。在我的网站上,这是装饰项目。我得到的是D飯;cor Itemsmake-sure标题('Content-Type:text/html;charset=utf-8');我是否需要将其用作php函数??我使用它作为文件的顶部,但它不起作用。您的XML使用正确的编码吗<代码>