<html>
<head>
<script type="text/javascript">
function testJs(){
var tem1 = "xingming";
var tem2 = "姓名";
var result = encodeURI(tem2);
alert(result);
}
function testJs2(){
var tem1 = "xingming";
var tem2 = "姓名";
var result = escape(tem2);
alert(result);
}
</script>
</head>
<body>
<input type = "button" name = "" id = "" value = "TEST" onclick = "testJs();">
<input type = "button" name = "" id = "" value = "TEST" onclick = "testJs2();">
</body>
</html>