类型:转载 责任编辑:asp 日期:2007/03/01
locale currentlocale=null;
resourcebundle messages=null;
currentlocale = new locale("zh", "cn");
messages = resourcebundle.getbundle("mypackage1.applicationresources",currentlocale);
string strmsg=messages.getstring("test.title");
怎么得到的strmsg是乱码,resource file 中test.title=错误
推荐阅读
string str = new string(strmsg.getbytes("iso8859_1"), "gb2312");
system.out.println(str);