Here you can find the source of openFileUTF(String nom)
public static BufferedReader openFileUTF(String nom) throws FileNotFoundException
//package com.java2s; /*/*from w w w . j a va 2 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 { /** @deprecated use getUTF8Reader instead */ public static BufferedReader openFileUTF(String nom) throws FileNotFoundException { return getUTF8Reader(new File(nom)); } public static BufferedReader getUTF8Reader(File f) throws FileNotFoundException { return new BufferedReader( new InputStreamReader(new FileInputStream(f), Charset.forName("UTF-8").newDecoder())); } }