String s = "大家好";
    try
    {
      s = new String(s.getBytes(), "ISO-8859-1");
    }
    catch(Exception e){}
    System.out.print(s.length());