![]() |
The Java Developers Almanac 1.4 |
|
e41. Writing UTF-8 Encoded Data try {
Writer out = new BufferedWriter(new OutputStreamWriter(
new FileOutputStream("outfilename"), "UTF8"));
out.write(aString);
out.close();
} catch (UnsupportedEncodingException e) {
} catch (IOException e) {
}
e42. Reading ISO Latin-1 Encoded Data e43. Writing ISO Latin-1 Encoded Data
© 2002 Addison-Wesley. |