转换一下编码试试
private String toChinese(String s){
String temp = "";
try{
         temp = new String(s.getBytes("ISO8859-1"),"GBK");
}
catch(java.io.UnsupportedEncodingException e){
}
return temp;
    }

解决方案 »

  1.   

    private static ResourceBundle[] interfaceLabel;static{
      try {
        interfaceLabel = new ResourceBundle[LANGUAGE_KIND];
        interfaceLabel[ENGLISH] = ResourceBundle.getBundle("eclabel",Locale.US);
        interfaceLabel[SIMPLIFIED_CHINESE] = ResourceBundle.getBundle("eclabel",Locale.SIMPLIFIED_CHINESE);
      } catch (MissingResourceException mre) {
        System.err.println("eclabel.properties not found");
      }
    }
    public final static String getLabel(String key,int language)throws MissingResourceException {
      return interfaceLabel[language].getString(key);
    }
      

  2.   

    试过我的用properties文件的方法了吗?
      

  3.   

    properties都不能在文件中输入正常的中文的,我已经试过几乎所以的方法啦,不行。
      

  4.   

    告诉你一个不幸的消息,properties的load方法是有问题的。我曾经研究过这个问题。我跟踪load方法,一直到一个class中,具体我记不清了。好象是因为load是以ISO8859-1来FileInputStream,但实际FileInputStream在中文环境下是“GBK"。解决办法是:不采用读文本的方式,而是通过实现接口ListResourceBoundle,生成的class就可以被看成是一个文本。具体参看ResourceBoudle的使用。