I need to parse a csv file, whose encoding format is in utf-16 format. Actually the csv file contains the list of directories to the file. for reading i used following code
BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(str)));
But the output i got is not in the correct format however i got all the data and if i write following code
BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(str), "utf-16"));
the same code i did previously couldnt give all the data. I hope u understood what i meant. need help.