Here you can find the source of getUTF8Reader(File f)
public static BufferedReader getUTF8Reader(File f) throws FileNotFoundException
//package com.java2s; /*/*from w w w . j a va2 s.c o m*/ This source code is copyrighted by Christophe Cerisara, CNRS, France. It is licensed under the terms of the INRIA Cecill-C licence, as described in: http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html */ import java.io.*; import java.nio.charset.Charset; public class Main { public static BufferedReader getUTF8Reader(File f) throws FileNotFoundException { return new BufferedReader( new InputStreamReader(new FileInputStream(f), Charset.forName("UTF-8").newDecoder())); } }