thelordoftherings
Programmer
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 to a unicode in some way?
Roy
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 to a unicode in some way?
Roy