In my project, I am storing the non-English character in database. I successfully stored the non-English character but when I try to retrive that value, I am getting the string like below:
How to convert this? Into character? Below is my code
TblNames name=new TblNames();
name.setName("அன்பு");
session.save(name);
Criteria cr=session.createCriteria(TblNames .class);
List<TblNames > tempList=cr.list();
System.out.println(tempList.get(0).getName());
In database it displays அன்பு but retrieving it displays ????? Any help will be greatly appreciated!