我想用a.htm文件向search.aspx下传参数(中英文)a.htm文件内容如下<html>
<head>
<meta content="text/html; charset=gb2312" http-equiv="Content-Type">
<title>Untitled 1</title>
<style type="text/css">
#tt{width:300px;height:30px;border:1px #c0c0c0 solid;line-height:30px;font-size:14px;}
</style>
</head>
<body>
<input type="text" id="tt">
<input type="button" onclick="javascript:window.location.href = 'http://www.abc.com/search.aspx?wd='+document.getElementById('tt').value;" value="搜索">
</body>
</html>
问:如果我在文本框中输入中文如何通过搜索按钮变成类似 http://www.abc.com/search.aspx?wd=%B7%C9%BB%FA 这样的网址,并且如何在search.aspx取到wd参数的原中文值?