Re: Re: Display Arabic Data in Database in JSP

2004-07-27 Thread Craig McClanahan
On 28 Jul 2004 04:15:07 -, Prakasan  OK <[EMAIL PROTECTED]> wrote:
> Hi Ron,
> 
> Once again thanks a lot for ur prompt reply.  
> can u tell me what is the encoding i should use to display the content in arabic and 
> english in the same jsp page? It would be really helpful if u can give me a sample 
> code snippet.

If the browser used by your client supports it (which most modern
browsers do), your best bet is probably UTF-8.  This is what the
standard Struts example application uses, and it can successfully
display both English and languages like Japanese and Russian.

To request this encoding for your pages, include the following sort of
declaration at the top of each JSP page:

  <%@ page contentType="text/html;charset=UTF-8" %>

> 
> Thanks,
> 
> 
> Prakasan
> 

Craig McClanahan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Display Arabic Data in Database in JSP

2004-07-27 Thread Prakasan OK
Hi Ron,

Once again thanks a lot for ur prompt reply.  
can u tell me what is the encoding i should use to display the content in arabic and 
english in the same jsp page? It would be really helpful if u can give me a sample 
code snippet.

Thanks,
Prakasan

On Tue, 27 Jul 2004 ron1 wrote :
>Prakasan OK wrote:
>>Thanks for the reply.  
>>I have some data in the page that needs to be displayed in english and one field to 
>>be displayed in arabic in the same jsp page.If I set the encoding to match with 
>>arabic is it possible to display the data in english properly?
>
>yes.
>
>>
>>any idea???
>>
>>thanks ,
>>Prakasan
>>
>>On Tue, 27 Jul 2004 ron1 wrote :
>>
>>>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: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>
>>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


Re: Display Arabic Data in Database in JSP

2004-07-27 Thread ron1
Prakasan OK wrote:
Thanks for the reply.  

I have some data in the page that needs to be displayed in english and one field to be displayed in arabic in the same jsp page.If I set the encoding to match with arabic is it possible to display the data in english properly?
yes.
any idea???
thanks ,
Prakasan
On Tue, 27 Jul 2004 ron1 wrote :
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Re: Display Arabic Data in Database in JSP

2004-07-27 Thread Prakasan OK
Thanks for the reply.  

I have some data in the page that needs to be displayed in english and one field to be 
displayed in arabic in the same jsp page.If I set the encoding to match with arabic is 
it possible to display the data in english properly?

any idea???

thanks ,
Prakasan

On Tue, 27 Jul 2004 ron1 wrote :
>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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


Re: Display Arabic Data in Database in JSP

2004-07-27 Thread ron1
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]