WriteToUTF8

try {
    Writer out = new BufferedWriter(new OutputStreamWriter(
        new FileOutputStream("outfilename"), "UTF8"));
    out.write(aString);
    out.close();
} catch (UnsupportedEncodingException e) {
} catch (IOException e) {
}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.