ReadFromUTF8

Introduction

try {
    BufferedReader in = new BufferedReader(
        new InputStreamReader(new FileInputStream("infilename"), "UTF8"));
    String str = in.readLine();
} 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.