I've been trying to build an application that stores text contents in any language into my database and retrieve the same. I am using postgres as my database and Hibernate as db framework.
The problem is that when i try to store a text into database using hibernate , it is getting printed in a different format in the javaEE server.
for eg: a text that i entered in the input box as " ജനുവരി " in malayalam is getting printed as " �?ന�?വരി " in the javaEE server.
The same scenario , when i tried using normal php code and php-postgres db connection is working fine. I am able to store language eg. hindi, tamil, telugu,malayalam etc into database and can retrieve and show in the html page without any troubles or loss of content. In this case i am able to read the content even through the pg-admin (postgres workbench) console.
But this same content , when i tries to fetch using javaEE hibernate query, i am getting a result like '?????????' even though i am able to read the actual content through the workbench.
I tried to set UTF8 encoding to my hibernate config file . but nothing seems to be working . any help on this will be greatly appreciated.
Thanks in advance.