"ANSI" is a vague, misleading term that should be avoided.
In this case, if the file is Hungarian, use an encoding that supports those characters: ISO-8859-2 or Windows-1250 -- not ISO-8859-1. For example, the very first line contains either:
"Határidõ" // lowercase-O with tilde, ISO-8859-1
"Határidő" // lowercase-O with double-acute, ISO-8859-2
The Windows charsets have additional printable characters in place of control characters in the "equivalent" ISO charsets. But unlike the situation with ISO-8859-1, where Windows-1252 has all of 8859-1's printable characters in the same place, Windows-1250 has some printable characters in different places. Considering all these factors, ideally you can figure out which encoding is actually being used. For example, if the data uses the euro, which is only in Windows-1250, you can specify that when instantiating the InputStreamReader
:
InputStreamReader isr = new InputStreamReader(is, "Windows-1250");