导航
首页
站内首页
网罗天下
网页前端
软件使用
站内首页
>
软件使用
>
技巧
> 正文
URL Encode/Decode互转
<script language="JScript"> function Encode_Gb2312(){ form1.tag.value='gbencode'; form1.submit(); } function Decode_Gb2312(){ form1.tag.value='gbdecode'; form1.submit(); } function Encode_Utf8(){ form1.tag.value='utfencode'; form1.submit(); } function Decode_Utf8(){ form1.tag.value='utfdecode'; form1.submit(); } </script> <table cellSpacing=0 cellPadding=0 width=500 align=center border=0><hr> <tr> <td width="500" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="100%" height="33" class="searchtitle"> <p align="center"><font size="5">URL Encode/Decode互转</font></td> </tr> <form name="form1" action="" method="post"> <tr> <td height="15" class="maincontent2"><div align="center">原始文本 <input type="text" name="url" size="30" value="" onDblClick="this.value='';" title="双击清空"> <br> <input type="button" onClick="Encode_Gb2312()" name="Submit2" value="GB2312方式Encode"> <input type="button" onClick="Encode_Utf8()" name="Submit1" value="Utf-8方式Encode"> <br> </div></td> </tr> <tr> <td height="15" class="maincontent2"><div align="center">目标文本 <input type="text" name="newurl" size="30" value="" onDblClick="this.value='';" title="双击清空"> <br> <input type="button" onClick="Decode_Gb2312()" name="Submit22" value="GB2312方式Decode"> <input type="button" onClick="Decode_Utf8()" name="Submit12" value="Utf-8方式Decode"> <input type="hidden" name="tag" size="10" value=""> <br> </div></td> </tr> </form> <tr> <td class="searchmemo">URLEncode:是指针对网页url中的中文字符的一种编码转化方式,最常见的就是Baidu、Google等搜索引擎中输入中文查询时候,生成经过Encode过的网页URL。URLEncode的方式一般有两种一种是传统的基于GB2312的Encode(Baidu、Yisou等使用),一种是基于UTF-8的Encode(Google,Yahoo等使用)。本工具分别实现两种方式的Encode与Decode。</td> </table> </td> </tr> </table>
提示:可以修改后运行.
<<
88个Blog常用工具集锦
Escape/UnEscape相互转换
>>
查看所有评论
昵称
评论内容
相关文章
Escape/UnEscape相互转换
JS HTM代码转换
JS转HTML
转换英文字母大小写
在线留言
© 2021
i0561搜索
.All rights reserved.
v3.24
作者:
song2816
浏览:
发布时间:
08/01/17