Real simple question really. I need to read a Unicode text file in a Java program.
I am used to using plain ASCII text with a BufferedReader FileReader combo which is obviously not working :(
I know that I can read a String in the 'traditional' way using a Buffered Reader and then convert it using something like:
temp = new String(temp.getBytes(), "UTF-16");
But is there a way to wrap the Reader in a 'Converter'?
EDIT: the file starts with FF FE
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…