Here you can find the source of openFileReaderUTF8(File file)
public static Reader openFileReaderUTF8(File file) throws FileNotFoundException
//package com.java2s; /**//from w ww.j a v a 2 s. c o m * <p>Description: Provides methods to read / write files.</p> * <p>Copyright (c) 2007</p> * <p>License: Apache 2.0</p> * * @author Roman Stumm */ import java.io.*; import java.nio.charset.Charset; public class Main { public static Reader openFileReaderUTF8(File file) throws FileNotFoundException { return openFileReader(file, "UTF-8"); } public static Reader openFileReader(File file, String encoding) throws FileNotFoundException { return new InputStreamReader(new FileInputStream(file), Charset.forName(encoding)); } }