I have a text file with a just a character 'T' inside, and I have created a read stream to output to the console what is being read and I got 239, 187, 191 and 84, I understand that 84 represents 'T', I know 239, 187, 191 represent other characters as well but I don't have those characters in my text file, what is going on??
public class Test {
public static void main(String args[]) throws IOException {
FileInputStream in = null;
try {
in = new FileInputStream("input.txt");
int c;
while ((c = in.read()) != -1) {
System.out.println(c);
}
}finally {
if (in != null) {
in.close();
}
}
}
}