Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Servlet/JSP/JSF/JavaFX Script  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
reply to postflat modethreaded modego to previous topicgo to next topicgo to back
作者 Re:请教一个中文名图片不能显示的问题? [Re:空心菜]
空心菜





发贴: 214
于 2005-03-10 15:55 user profilesend a private message to userreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我找了找发现还是不知怎么decode
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
<title>URL Decoder/Encoder</title>
<style type="text/css">
<!--
body {background: white; color: black;}
form {margin: 0;}
h1 {font-family: Arial, sans-serif; line-height: 0.85em; border-bottom: 2px solid; margin-bottom: 0.33em; padding-bottom: 0;}
textarea {background: #EEF;}
#footer {border-top: 1px solid #000; color: #999; font: italic 75% sans-serif;}
#footer p {margin: 0 0 1em 0;}
#footer img {float: right; margin: 0 0 0.5em 2em;}
-->
</style>
<script type="text/javascript">
function encode() {
  var obj = document.getElementById('dencoder');
  var unencoded = obj.value;
  obj.value = escape(unencoded);
}
function decode() {
  var obj = document.getElementById('dencoder');
  var encoded = obj.value;
  obj.value = unescape(encoded.replace(/\+/g, " "));
}
</script>
</head>
<body><form onsubmit="return false;"><h1>URL Decoder/Encoder</h1>
<textarea cols="80" rows="20" id="dencoder"></textarea>
<div><input type="button" onclick="decode()" value="Decode">
<input type="button" onclick="encode()" value="Encode"></div>
<ul><li>Input a string of text and encode or decode it as you like.</li>
<li>Handy for turning encoded JavaScript URLs from complete gibberish into readable gibberish.</li>
<li>If you'd like to have the URL Decoder/Encoder for offline use, just view source and save to your hard drive.</li></ul></form>
</body>
</html>
这个是我找的,不管用啊,encode的字符都不一致
还是要请教floater 一下Blush




话题树型展开
人气 标题 作者 字数 发贴时间
25893 请教一个中文名图片不能显示的问题? 空心菜 289 2005-03-01 11:01
19451 Re:请教一个中文名图片不能显示的问题? floater 60 2005-03-01 22:38
19566 Re:请教一个中文名图片不能显示的问题? jiehaorou 111 2005-08-07 14:09
19281 Re:请教一个中文名图片不能显示的问题? mfc42d 56 2005-08-10 13:55
19298 Re:请教一个中文名图片不能显示的问题? mfc42d 3917 2005-08-10 13:56
19212 Re:请教一个中文名图片不能显示的问题? bluecrystal 29 2005-09-28 09:50
19117 Re:请教一个中文名图片不能显示的问题? javadd 90 2005-11-22 18:55
22794 Re:请教一个中文名图片不能显示的问题? dy810810 90 2005-12-11 16:44
19434 Re:请教一个中文名图片不能显示的问题? 空心菜 11 2005-03-04 16:08
19502 Re:请教一个中文名图片不能显示的问题? 空心菜 1555 2005-03-10 15:55
19384 Re:请教一个中文名图片不能显示的问题? chengbd 32 2005-03-10 17:38
19368 Re:请教一个中文名图片不能显示的问题? chengbd 491 2005-03-10 17:50
19377 Re:请教一个中文名图片不能显示的问题? floater 68 2005-03-10 23:06
19446 Re:请教一个中文名图片不能显示的问题? 空心菜 3832 2005-03-17 15:25
19369 Re:请教一个中文名图片不能显示的问题? chengbd 21 2005-05-26 09:49
19284 Re:请教一个中文名图片不能显示的问题? chengbd 320 2005-05-26 10:13

reply to postflat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923