Following is code i use to read the file.
InputStreamReader iReader = new InputStreamReader(new FileInputStream("myrecords.txt"),"ISO-8859-1");
BufferedReader bReader = new BufferedReader(iReader);
public static List<String> bufferedReaderToStringList(BufferedReader bReader) throws IOException {
List<String> stringList = new ArrayList<String>();
String text;
while ((text = bReader.readLine()) != null) {
stringList.add(text);
}
bReader.close();
return stringList;
}
When i fetch data from string and print then all characters get distorted. On My Putty Screen and even i save it in Database it is still distorted. Anyone please help in resolving issue
Anyone please guide where i am doing wrong?
Dolvenh�yda is distorted one. It is Norwegian character.
Dolvenhøyda is correct one.