![]() |
The Java Developers Almanac 1.4 |
|
e40. Reading UTF-8 Encoded Data try {
BufferedReader in = new BufferedReader(
new InputStreamReader(new FileInputStream("infilename"), "UTF8"));
String str = in.readLine();
} catch (UnsupportedEncodingException e) {
} catch (IOException e) {
}
e42. Reading ISO Latin-1 Encoded Data e43. Writing ISO Latin-1 Encoded Data
© 2002 Addison-Wesley. |