Reading Unicode.

I have code for reading a text file using

FileReader
StringTokenizer

The text file I had was ANSI. I now need to be able to read Unicode to support more languages. As soon as I made it a Unicode text file instead then my code threw exceptions instead. Why?

InputStreamReader(InputStream in, String charsetName)

Eg new InputStreamReader(in, “UTF-8”).