PHP urlencode返回意外结果

问题描述 投票:0回答:1

我正在尝试使用urlencode对以下内容进行编码:

 <t:RequestSecurityTokenResponse xmlns:t 

应编码为:

 %3Ct%3ARequestSecurityTokenResponse+xmlns%3At 

但是,urlencode的结果是这样的:

 %26lt%3Bt%3ARequestSecurityTokenResponse+xmlns%3At

我觉得我在这里遗漏了一些非常明显的东西,但是我一直无法弄清楚。有什么建议吗?

php urlencode
1个回答
0
投票

编码字符串的开头看起来像

© www.soinside.com 2019 - 2024. All rights reserved.