集册 Java实例教程 编写ISO拉丁语

编写ISO拉丁语

欢马劈雪     最近更新时间:2020-01-02 10:19:05

552
编写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();
展开阅读全文