public static String toChinese(String str) {
    try {
      if (str == null) {
        return null;
      }
      else {
        str = new String(str.getBytes("ISO8859_1"), "GBK");
        return str;
      }
    }
    catch (Exception e) {
      return null;
    }
  }试试,再不行就用过滤器好了