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