把test编码后的值赋给aa,aa就是你需要的值<%dim aaaa = Server.UrlEncode(test) %>//也可以直接在页面中显示test编码后的值<%response.write Server.UrlEncode(test) %> 字数限制,不能多说