Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Adelina Fischer   on Jan 16 In Java Category.

  
Question Answered By: Perdita Lopez   on Jan 16

What about something like this:

BufferedReader br = new BufferedReader(new
InputStreamReader(getClass().getResourceAsStream("yourfile.txt"),
"UTF-8"));

Of course, yourfile.txt must be somewhere at your classpath.

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Use BufferedReader with a specific encoding? Or get search suggestion and latest updates.


Tagged: