java.io.UnsupportedEncodingException

新建了一个SSJ项目,居然提示错误:

SEVERE: Servlet.service() for servlet jsp threw exception

java.io.UnsupportedEncodingException: UFT-8
at org.apache.tomcat.util.buf.B2CConverter.getCharset(B2CConverter.java:71)
at org.apache.catalina.connector.Request.setCharacterEncoding(Request.java:1561)
at org.apache.catalina.connector.RequestFacade.setCharacterEncoding(RequestFacade.java:307)
at lubinsu.web.filter.SetCodeFilter.doFilter(SetCodeFilter.java:28)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

at java.lang.Thread.run(Thread.java:662)

检查一下发现:原来是UTF-8写错了,囧。mark

你可能感兴趣的:(java.io.UnsupportedEncodingException)