Skip to Content
0
Former Member
May 26, 2005 at 07:15 AM

Language problem when reading from a file

53 Views

Hello,

Hello,

I have a text file which contains data in Hebrew.

I am using these lines in order to read from the file:

File inputFile = new File("C:
test.txt");

BufferedReader input = new BufferedReader (new FileReader (inputFile));

while ((line = input.readLine()) != null)

....

The problem is that when I print what I read I receive "Gibrish" letters which is impossible to read, it looks like the collection of the data doesn't keep the language. Is there any way to solve this? perhaps converting the String in some way?

Roy