Eason

咸鱼咯

weblogic中文显示乱码解决办法

weblogic中文显示乱码解决办法
中文显示乱码解决办法:

1. 在 web.xml 里面加入

<context-param>
        <param-name>weblogic.httpd.inputCharset./*</param-name>
   <param-value>GB2312</param-value>
  </context-param>

2. 在 weblogic.xml 里面加入

<jsp-descriptor>
   <jsp-param>
    <param-name>compileCommand</param-name>
       <param-value>javac</param-value>
  </jsp-param>
  <jsp-param>
    <param-name>compilerSupportsEncoding</param-name>
       <param-value>true</param-value>
  </jsp-param>
  <jsp-param>
    <param-name>encoding</param-name>
    <param-value>GB2312</param-value>
    </jsp-param>
  </jsp-descriptor>

 

Comments are currently closed.