Here you can find the source of getUtf8FileWriter(String file, boolean append)
public static Writer getUtf8FileWriter(String file, boolean append) throws FileNotFoundException, UnsupportedEncodingException
//package com.java2s; //License from project: Apache License import java.io.*; public class Main { public static Writer getUtf8FileWriter(String file, boolean append) throws FileNotFoundException, UnsupportedEncodingException { return new OutputStreamWriter(new FileOutputStream(file, append), "utf-8"); }/* ww w .jav a 2 s . c o m*/ public static Writer getUtf8FileWriter(File file, boolean append) throws FileNotFoundException, UnsupportedEncodingException { return new OutputStreamWriter(new FileOutputStream(file, append), "utf-8"); } public static Writer getUtf8FileWriter(String file) throws FileNotFoundException, UnsupportedEncodingException { return new OutputStreamWriter(new FileOutputStream(file, false), "utf-8"); } public static Writer getUtf8FileWriter(File file) throws FileNotFoundException, UnsupportedEncodingException { return new OutputStreamWriter(new FileOutputStream(file, false), "utf-8"); } }