Tomcat 重启出现的gbk问题 以下是我报的异常 错误如下:
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.io.UnsupportedEncodingException: gbk
java.lang.StringCoding.decode(Unknown Source)
java.lang.String.<init>(Unknown Source)
java.lang.String.<init>(Unknown Source)
org.apache.catalina.connector.Request.setCharacterEncoding(Request.java:1478)
org.apache.catalina.connector.RequestFacade.setCharacterEncoding(RequestFacade.java:307)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:91)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.
这个程序在本机上运行为正确的,放到服务器上开始也是正确的,但重启就发生了错误,小妹分少,不好意思,大虾帮忙,解决一下。谢谢///
------解决方案--------------------
确认你的jsp和数据库的编码
看下你的java里面是否有进行过转码
应该是编码有问题吧
代码迷推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.daimami.com/search?q=317