posts - 325,  comments - 25,  trackbacks - 0
          1.html中文問題
          <meta http-equiv="Content-Type" content="text/html;charset="gb2312">
          2.jsp頁面中文問題
          <%@ page contentType="text/html;charset=gb2312" language="java"%>
          3.servlet響應結果中文問題
          response.setCharacterEncoding("gb2312");
          4.頁面數據傳輸中文問題
          在web.xml中配置<filter>
          5.http(get)請求中文問題
          String param=request.getParameter("param");
          if(param!=null) param=new String(param.getBytes("ISO-8859-1"),"gb2312");
          如果 http(get)請求中傳遞中文參數比較多,可以修改tomcat下server.xml
          <Connector port="8080"
                              maxThreds="150"
                              minSpareThreds="25"
                              maxSpareThreds="75"
                              enableLookups="false"
                              redirectPort="8443" 
                              acceptCount="100"
                              debug="0"
                              connection Timeout="20000"
                              disableUploadTimeout="true"
                              URIEncoding="GB2312"/>
          6.mysql中文問題
          在jdbc驅動的URL上:
          jdbc:mysql://localhost/test?user=root&password=123&useUnicode=true&characterEncoding=gb2312
          或修改mysql.ini 下的mysql默認字符設置
          posted on 2008-05-25 23:31 長春語林科技 閱讀(208) 評論(0)  編輯  收藏 所屬分類: util
          <2008年5月>
          27282930123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

           

          長春語林科技歡迎您!

          常用鏈接

          留言簿(6)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          相冊

          收藏夾

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 青田县| 凤冈县| 宜春市| 扎赉特旗| 祁门县| 碌曲县| 石门县| 沙湾县| 武宣县| 周口市| 哈密市| 石景山区| 冕宁县| 辽源市| 张家港市| 汝州市| 宁南县| 雷山县| 岗巴县| 南江县| 安陆市| 青州市| 京山县| 庆安县| 满城县| 呼和浩特市| 张家港市| 繁峙县| 尼木县| 郸城县| 麦盖提县| 平果县| 磐安县| 台江县| 承德县| 长葛市| 新晃| 四子王旗| 太康县| 武隆县| 泸定县|