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 長春語林科技 閱讀(212) 評論(0)  編輯  收藏 所屬分類: util
          <2008年5月>
          27282930123
          45678910
          11121314151617
          18192021222324
          25262728293031
          1234567

           

          長春語林科技歡迎您!

          常用鏈接

          留言簿(6)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          相冊

          收藏夾

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 东乡县| 北京市| 阿尔山市| 石景山区| 尚义县| 崇左市| 乌拉特前旗| 丹阳市| 青岛市| 沁阳市| 富蕴县| 江山市| 句容市| 全南县| 平阳县| 抚顺县| 嘉善县| 广灵县| 怀柔区| 青海省| 南宁市| 华安县| 上犹县| 故城县| 台北市| 民县| 林甸县| 马边| 晋江市| 曲沃县| 新郑市| 正定县| 攀枝花市| 峡江县| 旬邑县| 东至县| 潜江市| 巴中市| 长白| 甘孜| 游戏|