BufferedReader br=new BufferedReader( new InputStreamReader(new FileInputStream("g.txt"), "UTF-16"));
ArrayList<String> al=new ArrayList<String>();
String str;
while((str=br.readLine())!=null)
{
al.add(str);
}
Iterator<String> it=al.iterator();
while(it.hasNext())
{
str=it.next();
System.out.println(str);
}
In this code I can read data from Unicode file properly and also able to insert into arrylist correctly but while I am trying to iterate the data It just print question marks only like ???? ?? ????, ?????, and so on can you help to solve this issu