编写ISO Latin-1编码数据
import java.io.BufferedWriter; import java.io.FileOutputStream; import java.io.IOException; /** from * 时 代 J a v a - nowjava.com **/ import java.io.OutputStreamWriter; import java.io.UnsupportedEncodingException; import java.io.Writer; public class Main { public void main(String[] argv) { try { Writer out = new BufferedWriter(new OutputStreamWriter( new FileOutputStream("outfilename"), "8859_1")); out.write("aString"); out.close();