DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Read UTF-8 File In Java
BufferedReader in = new BufferedReader(new FileReader("file"));
while( (s = in.readLine()) != null) {
String UTF8Str = new String(s.getBytes(),"UTF-8"));
}






Comments
Snippets Manager replied on Mon, 2012/05/07 - 2:12pm
Snippets Manager replied on Mon, 2012/05/07 - 2:12pm
Reader in = new InputStreamReader(new FileInputStream("file"), "UTF-8"));