查了一下 RFC " /> 日韩精品欧美,日本天堂免费,综合激情av

四虎精品视频-四虎精品成人免费网站-四虎黄色网-四虎国产视频-国产免费91-国产蜜臀97一区二区三区

url decode problem 解決方法

試驗了一下Python的urllib庫以及js 的 encodeURIComponent 均不會替換。空格encode也是替換成了 '%20' 。Python提供了urllib.quote_plus, urlib.unquote_plus來處理空格->加號,看起來還是比較合理的。

查了一下 RFC 3986: 有下面一段

Scheme names consist of a sequence of characters beginning with a letter and followed by any combination of letters, digits, plus ("+"), period ("."), or hyphen ("-").
RFC 2396 有下面的一段

The plus "+", dollar "$", and comma "," characters have been added to those in the "reserved" set, since they are treated as reserved within the query component.
表示加號已經是url的保留字了,不需要轉義。

然后html4文檔里才有關于加號的轉義:

application/x-www-form-urlencoded
Forms submitted with this content type must be encoded as follows:
Control names and values are escaped. Space characters are replaced by`+', and then reserved characters.....
聲明只有content-type為application/x-www-form-urlencoded時才會對+做轉義。

又翻了下php的文檔,發現有一個

rawurlencode() - URL-encode according to RFC 3986


也就是php又搞了rawurlencode和rawurldecode把標準實現了。。。。

不能反一下么,畢竟大部分人應該都會用urlencode。php真是蛋疼啊。。。。

php技術url decode problem 解決方法,轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 山东教育电视台直播在线观看| 禁忌爱情| 安达充| 性感美女喷水| bob hartman| 爱奴 电影| av电影在线| 飞龙猛将演员表| 简谱儿歌| 印度西施| 陈烨个人资料简介| 恶魔 电影| 月亮电影| 成人免费视频在线播放| 最后的武士| 少女戏春潮| 宋小莹| 美女绳奴隶| 我们的高清免费视频观看| 深流 电视剧| 白鹅课文| 情事:秘密情事| 算死草粤语| 廖凡和莫小棋主演的一半火焰一半海水 | 防冲撞应急处置预案| 黄网站在线免费| 乔治桑| 钢琴键盘示意图| 搭错车演员表| 国庆节安全公约| 林正英演的全部电影| 爱情手册电影| 克蕾曼丝·波西| 赌侠 1990 刘德华| 核舟记课堂笔记| 秀女| 猛鬼差馆 电影| 免费操人视频| 张剑虹| 珠帘玉幕图片| 第五单元初试身手|