You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Prakasan OK <ok...@rediffmail.com> on 2004/07/27 10:38:07 UTC

Display Arabic Data in Database in JSP

Hi,

I have some arabic data in my oracle database and I need to display this in my jsp page.When I select the value from the databse I am getting the ascii value like this(ÅäÌáíÒí).How can I convert this to original arabic value and display in my jsp page.

Thanks in advance,
Prakasan

Re: Display Arabic Data in Database in JSP

Posted by ron1 <ro...@gmx.net>.
I am not sure if it solves the problem, but you can set an HTML META tag 
in your HTML header, defining the encoding.
Your response also has an encoding, so you can also set that - if you 
use both, it might solve the problem.
I am not sure where is the propper place instruts to set the response 
encoding - I would guess it would be in a custom Controller class, if 
you need it for the whole application. If its only for one page... hmm...
Cheers,
und Salam Aleykum,
Ron



Prakasan OK wrote:
> Hi,
> 
> I have some arabic data in my oracle database and I need to display this in my jsp page.When I select the value from the databse I am getting the ascii value like this(ÅäÌáíÒí).How can I convert this to original arabic value and display in my jsp page.
> 
> Thanks in advance,
> Prakasan
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org