急啊~~~~有关gb2312与UTF-8的问题
在JSP页面中取的一日历上的日期
为啥charset=gb2312时,就可以
而charset=UTF-8时,就出错,(要求用UTF-8)
转换器设置没问题~~
在JSP页面中 <%@ page contentType= "text/html; charset=gb2312 " %>
就沒錯~~~~
<html>
<head> <title> 示例 </title>
<meta http-equiv= "Content-Type " content= "text/html; charset=UTF-8 ">
</head>
<script language=javascript src= "inc/setday.js "> </script>
<body>
从
<input onfocus= "setday(this) " size= "8 " id=fr>
到
<input onfocus= "setday(this) " size= "8 " id=frm>
<input type= "submit " value= "确定 ">
</body> </html>
------解决方案--------------------setday.js保存时,转换器没有选UTF-8(可能)