我在代码中加入<%@page contentType="text/html;charset=gb2312"%>总是弹出下面的错误

olivehb 2001-11-29 07:52:18
java.io.UnsupportedEncodingException: EUC_CN
at sun.io.Converters.getConverterClass(Unknown Source)
at java.lang.Exception.<init>(Unknown Source)
at java.io.IOException.<init>(Unknown Source)
at java.io.UnsupportedEncodingException.<init>(Unknown Source)
at sun.io.Converters.getConverterClass(Unknown Source)
at sun.io.Converters.newConverter(Unknown Source)
at sun.io.ByteToCharConverter.getConverter(Unknown Source)
at java.io.InputStreamReader.<init>(Unknown Source)
at allaire.jrun.jsp.JSPParser.writeXML(JSPParser.java:128)
at allaire.jrun.jsp.JSPParser.generateXML(JSPParser.java:107)
at allaire.jrun.jsp.JSPParser.generateXML(JSPParser.java:64)
at allaire.jrun.jsp.Translator.parsePage(Translator.java:192)
at allaire.jrun.jsp.Translator.translate(Translator.java:390)
at allaire.jrun.jsp.Translator.translate(Translator.java, Compiled Code)
at allaire.jrun.jsp.JSPTranslator.translate(JSPTranslator.java, Compiled Code)
at allaire.jrun.jsp.JSPTranslator.translate(JSPTranslator.java, Compiled Code)
at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java, Compiled Code)
at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java, Compiled Code)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
at allaire.jrun.session.JRunSessionService.service(JRunSessionService.java, Compiled Code)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java, Compiled Code)
at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java, Compiled Code)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java, Compiled Code)
at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java, Compiled Code)
at allaire.jrun.http.WebEndpoint.run(WebEndpoint.java, Compiled Code)
at allaire.jrun.ThreadPool.run(ThreadPool.java, Compiled Code)
at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)

怎么办?多谢多谢
...全文
101 点赞 收藏 6
写回复
6 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
olivehb 2001-12-01
:),谢谢各位,都不是,装了jsdk1.3就可以了,以前用的是jre1.2
回复
ryau 2001-11-30
kao
这样的<%@ page ContentType="text/html;charset=gb2312"%>

注意大小写啊

回复
kenchuang 2001-11-30
把这句删掉
回复
Evawang 2001-11-30
<%@ page contentType="text/html;charset=gb2312"%>
这样试一试
回复
olivehb 2001-11-29
已经重启了很多次了,还是不行
回复
boyandgirl 2001-11-29
服务器重新启动以下看看
回复
相关推荐
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2001-11-29 07:52
社区公告
暂无公告