当前位置:网站首页>php的urldecode无法还原出原来的url
php的urldecode无法还原出原来的url
2022-04-21 07:58:00 【Day____Day____Up】
首先, 看下urlencode的官方说明: 大致意思是将除英文和数字以及-_ 外的字符都转换为%##格式, ##表示两个hex码, 此外还有个特殊就是空格转换为+.
反之,urldecode就是将%##格式转换为对应的字符, 同样+转换为空格.
知道这两个函数定义后, 我们就知道一个url被urlencode多少次,如果要还原就要相应的用几次urldecode.如果相应的urldecode次数不够则就无法还原到原来的url. 当url无法还原时, 可以考虑会不会有这种情况.
总结: 使用几次urlencode,就要用几次urldecode解.
版权声明
本文为[Day____Day____Up]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_37281289/article/details/107343836
边栏推荐
猜你喜欢
随机推荐
webapi(六)- BOM
链表的静态插入和动态遍历
Niuke white moon race 4 [solution]
IntelliJ更新后Kotlin项目无法运行
第五章 函数
MES与ERP需要整合才能体现关键作用
記C#的操蛋字符串轉Base64和Base64還原字符串
MySQL的卸载安装与设置
web应用中的乱码问题
Convertir la chaîne C # en chaînes de restauration base64 et base64
完整版操作过程JETSON安装最新opencv
Antv X6布局layout的使用
Introduction to cyberspace and implementation of cryptography operation
PIP was installed successfully, but pycharm reported an error
Record the fuck string of C # to Base64 and Base64 restore string
Security settings of SQL Server database of SQL Server database
How to solve the failure of importing Excel data into the database
一定要看,MES选型九步,你漏掉了哪一步?(上)
feign请求拦截器中读取配置文件的问题
xilinx MPSOC EMIO IIC搭建









