import java.io.*;
public class Convert
{
public static void main(String[] args) throws Exception
{
try {
FileOutputStream fos = new FileOutputStream("kkk.txt");
Writer out = new OutputStreamWriter(fos, "GBK");
out.write("你好·你··好");
out.close();
}
catch (IOException e) {
e.printStackTrace();
}
}
}//中文字符·是在微软拼音输入法下,按“shift+2” 输入。
public class Convert
{
public static void main(String[] args) throws Exception
{
try {
FileOutputStream fos = new FileOutputStream("kkk.txt");
Writer out = new OutputStreamWriter(fos, "GBK");
out.write("你好·你··好");
out.close();
}
catch (IOException e) {
e.printStackTrace();
}
}
}//中文字符·是在微软拼音输入法下,按“shift+2” 输入。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货