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)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          相冊

          收藏夾

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 南京市| 抚远县| 宜宾县| 齐河县| 栖霞市| 苗栗县| 含山县| 绥阳县| 青海省| 锦屏县| 林周县| 伊宁县| 中宁县| 乌拉特前旗| 都匀市| 固原市| 施秉县| 梁山县| 高密市| 棋牌| 镇坪县| 巴里| 吉木乃县| 朝阳区| 什邡市| 抚远县| 宜兰县| 修武县| 刚察县| 天峨县| 凭祥市| 兰州市| 泰顺县| 汶川县| 宣城市| 犍为县| 泸西县| 积石山| 怀柔区| 修水县| 武城县|