在javascript中接收来自ajax的响应时,php urldecode无法正常工作

在javascript中接收来自ajax的响应时,php urldecode无法正常工作,php,character-encoding,urlencode,urldecode,Php,Character Encoding,Urlencode,Urldecode,我已经解释了下面的所有步骤,并在每个阶段捕获了数据 我不明白为什么urldecode在这种情况下不能正常工作 Original String: <p>​hello</p> Javascript encodeURIComponent() of above string: %3Cp%3E%E2%80%8Bhello%3C%2Fp%3E Sent via Ajax: %3Cp%3E%E2%80%8Bhello%3C%2Fp%3E PHP: Echo $_RE

我已经解释了下面的所有步骤,并在每个阶段捕获了数据

我不明白为什么urldecode在这种情况下不能正常工作

Original String:
  <p>​hello</p>

Javascript encodeURIComponent() of above string:
  %3Cp%3E%E2%80%8Bhello%3C%2Fp%3E

Sent via Ajax: 
  %3Cp%3E%E2%80%8Bhello%3C%2Fp%3E

PHP: Echo $_REQUEST['string'];
  %3Cp%3E%E2%80%8Bhello%3C%2Fp%3E

PHP: urldecode of above string
  ​hello
原始字符串:
​你好

上述字符串的Javascript encodeURIComponent(): %3Cp%3E%E2%80%8B%3C%2Fp%3E 通过Ajax发送: %3Cp%3E%E2%80%8B%3C%2Fp%3E PHP:Echo$_请求['string']; %3Cp%3E%E2%80%8B%3C%2Fp%3E PHP:urldecode上面的字符串 -你好
h
之间有一个特殊的隐藏字符。如果您在浏览器中以html格式查看字符串,您将能够看到它。

这不是您试图编码的URI。是的,请在此表单上手动测试:您在此处尝试过解决方案吗?