Over a million developers have joined DZone.

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"));
}
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}