DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Java (http://www.daniweb.com/forums/forum9.html)
-   -   Fetching data as Arabic from database?? (http://www.daniweb.com/forums/thread152811.html)

prabbhhu Oct 22nd, 2008 4:55 am
Fetching data as Arabic from database??
 
I am using Java along with hibernate, I stored datas in UTF-8 format for my project, i need to retrieve datas in Arabic, give me some ideas about this conept... i m in hurry... reply me as ap..

orko Oct 22nd, 2008 5:42 pm
Re: Fetching data as Arabic from database??
 
Tell us more. Are you reading the data? What are getting as your data? This can be taken care in Database [Depending on how you are using it] or you can get the data and convert into arabic. Show us how you are doing it if you really want any help.

prabbhhu Oct 23rd, 2008 1:30 pm
Re: Fetching data as Arabic from database??
 
Quote:

Originally Posted by orko (Post 719174)
Tell us more. Are you reading the data? What are getting as your data? This can be taken care in Database [Depending on how you are using it] or you can get the data and convert into arabic. Show us how you are doing it if you really want any help.

I want to store data in UTF format, when retreiving the data convert that UTF format into some language say Arabic and Hindi. This is problem . Could you help me in this regard...

orko Oct 23rd, 2008 2:04 pm
Re: Fetching data as Arabic from database??
 
On the first post you said you have already stored your data in database, now you are saying you want to store your data in UTF (which means you didn't store anything anywhere). It appears to me you actually didn't do anything yet. However, you should use InputStreamReader and OutputStreamWriter to read and write data. Hope it helps.

stultuske Oct 24th, 2008 5:06 am
Re: Fetching data as Arabic from database??
 
and keep in mind that you have to use the right encoding


All times are GMT -4. The time now is 1:55 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC