这个问题是中文乱码问题,你到如下去看看.
http://www.csdn.net/expert/topic/1065/1065682.xml?temp=.4448053

解决方案 »

  1.   

    3:)针对jsp和servlet:
    解决办法:
    第一:
    在jsp页面加入:
    <%@ page contentType="text/html; charset=gb2312" %>
    或者在servlet里面
      public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        response.setContentType("text/html; charset=gb2312");//这是重要的
    上面的如果在不行就用如下的方法在数据入库前进行调用:
    public static String UnicodeToChinese(String s){
      try{
         if(s==null||s.equals("")) return "";
         String newstring=null;
         newstring=new String(s.getBytes("ISO8859_1"),"gb2312");
         return newstring;
        }
      catch(UnsupportedEncodingException e)
      {
      return s;
      }
      }public static String ChineseToUnicode(String s){
      try{
      if(s==null||s.equals("")) return "";
      String newstring=null;
      newstring=new String(s.getBytes("gb2312"),"ISO8859_1");
       return newstring;
      }
      catch(UnsupportedEncodingException e)
      {
      return s;
     }
      }3:)解决weblogic/webshpere中文问题:
    在web.xml文件中需要配置中文环境。r如下:
    <context-param>
      <param-name>weblogic.httpd.inputCharset./*</param-name>
      <param-value>GB2312</param-value>
    </context-param>
      

  2.   

    to:wjmmml(笑着悲伤) 
    方法早已试过,如果用new String(src.getBytes("ISO-8859-1","GB2312"));
    只能显示部分中文,用new String(src.getBytes("UTF-8","GB2312"));
    却显示用前者不能显示的那部分中文。
      

  3.   

    非常奇怪的是如果文件名有英文,则文件名提取正常,却无法取得文件中的数据,经过debug原来是private native static long read(...);底层函数无法读取,可见java对中文的支持是如此差!
      

  4.   

    Java对本地化的支持确实很差,我在论坛上看到这类问题的解决方法
    都很尴尬,唉