Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Read UTF-8 File In Java

DZone's Guide to

Read UTF-8 File In Java

·
Free Resource

BufferedReader in = new BufferedReader(new FileReader("file"));
while( (s = in.readLine()) != null) {
		
	String UTF8Str = new String(s.getBytes(),"UTF-8"));
}
Topics:

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}