我的程序是这么写的:public static void main(String args[]) {
String str = "裏";
BufferedWriter bw = null;
try {
bw = new BufferedWriter(
new OutputStreamWriter(new FileOutputStream("F:/test.txt"),
"big5"));
bw.write(str);
} catch (Exception e) {
e.printStackTrace();
}
finally
{
try
{
bw.close();
}
catch (Exception ex1)
{
}
}
} 别的繁体字都可以,就个别的繁体汉字不行,请各位大虾看看:
String str = "裏";
BufferedWriter bw = null;
try {
bw = new BufferedWriter(
new OutputStreamWriter(new FileOutputStream("F:/test.txt"),
"big5"));
bw.write(str);
} catch (Exception e) {
e.printStackTrace();
}
finally
{
try
{
bw.close();
}
catch (Exception ex1)
{
}
}
} 别的繁体字都可以,就个别的繁体汉字不行,请各位大虾看看:
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货