java.io.CharConversionException: Not an ISO 8859-1 character:

2011-12-6 17:50:20 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet action threw exception
java.io.CharConversionException: Not an ISO 8859-1 character: 恭
at javax.servlet.ServletOutputStream.print(ServletOutputStream.java:89)
at javax.servlet.ServletOutputStream.println(ServletOutputStream.java:242)
at com.boyusoft.bycfp.platform.action.CoreAction.execute(CoreAction.java:76)
at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:106)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at com.boyusoft.bycfp.platform.filter.ActionFilter.process(ActionFilter.java:25)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at com.boyusoft.bycfp.platform.filter.ActionFilter.doPost(ActionFilter.java:15)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
环境jdk1.6Myeclipse6.5求解决方案
有人告诉我需要改注册表的编码具体操作我不清楚,求指导谢谢

1个回答


[code="java"]at com.boyusoft.bycfp.platform.action.CoreAction.execute(CoreAction.java:76) [/code]

此处不使用ServletOutputStream

使用
[code="java"]
PrintWriter pw = response.getWriter();
pw.write(str)
[/code]

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐