<%@page contentType="text/html; charset=gb2312"%>
解决方案 »
- 求jsp把txt资料导入oracel的例子
- 操作数据库方面的小问题。实在想不出来了!!!1
- 在JAVAScript中
- jsp里<%%>读网页问题?
- <Ajax实战>电子版哪有下的,谢谢
- package org.apache.struts.action.* does not exist,刚学struts碰到的问题,请各位帮看一下!
- 请问高手怎么对已经定制组合的两幅图片传送到另一个页面进行预览???
- 如何不用控件,直接将打印页面设置未横向?
- 请大家提供一个思路?网站前台静态,后台动态
- JSP中的ResultSet???怎么出错了。请帮帮忙
- 大量数据下的表单提交-急
- 怎样不显示tomcat中的文件目录?
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
request.setCharacterEncoding("gb2312");
<%@ page contentType="text/html;charset=GBK"%>
是 kingssman() 说得对!谢谢了也同样谢谢 bobZ(蓝眼) 呵呵!给分了
<head>
<title>Untitled</title>
</head><body><table align="center" border="0" width="760" cellspacing="0" cellpadding="0" height="355">
<tr>
<td width="150" height="355" valign="top">
</td>
<td width="10" height="100%"></td>
<td width="1" height="100%" bgcolor="#3399ff"></td>
<td width="10" height="100%"></td>
<td width="589" height="331" valign="top" background="images/bg1.gif">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="307">
<tr>
<td width="100%" colspan="2" height="20" bgcolor="#3399ff"> <font color="#ffffff">ウノヤアオヌツシ</font>
</td>
</tr>
<form action="login_ok.jsp" method="post">
<tr><td align="right" height="32" width="40%">ミユテ訒コ</td>
<td>
<input type="hidden" name="returl" value="">
<input type="text" name="logname" value="">
</td>
</tr>
<tr>
<td align="right" height="32">テワツ・コ</td>
<td>
<input type="password" name="logpass">
</td>
</tr>
<tr>
<td align="center" colspan="2" height="32"> |
<a href="findpass.jsp">テワツ・・ヒ」ャユメメサマツ</a> |
<a href="reg.jsp">ラ「イ瞎ツモテサァ</a> |
<input type="submit" name="login" value="オヌツシ!">
</td>
</tr>
</form>
<tr>
<td colspan="2" align="right"> </td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
我试过了,可以显示
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
在jsp里加:<%@page contentType="text/html; charset=gb2312"%>
如果不行的话就把charset=gb2312改成:charset=ISO-8859-1应该可以阿,我的从来没有乱过阿
setCharacterEncoding("gb2312")是在哪个包里的方法呢?我怎么找了整个doc都没有找到呢?
能不能把用法写的详细些呢??
setCharacterEncoding()原来是在j2ee的doc里面,怪不得我在j2se的doc里面找不到!!多谢: bobZ(蓝眼)