久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      java頁面中文亂碼解決方法

      java頁面中文亂碼解決方法

      1、設(shè)置eclips , window->Preferences->web->JSP Files中的Encoding選項為UTF-8

      2、修改jsp文件頭部為UTF-8

      <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

      3、設(shè)置servlet中request對象編碼

      public class RegisterServlet extends HttpServlet{      public void doGet(HttpServletRequest request,HttpServletResponse response)                  throws ServletException,IOException{                   request.setCharacterEncoding("UTF-8");                   ........       }  }

      4、如果還是亂碼,設(shè)置tomat中的配置文件

      Tomcat的server.xml文檔中的 <Connector> 配置中增加

      useBodyEncodingForURI="true" IEncoding="utf-8" URIEncoding="utf-8"

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號