[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Re: Help regarding arabic in jsp



FYI, in case someone needs this info.

 - Nadim




		
__________________________________ 
Do you Yahoo!? 
All your favorites on one personal page  Try My Yahoo!
http://my.yahoo.com 
--- Begin Message ---
Hi,
    Thank you for your kind attention. I found the solution for that through
google. Now it is working fine.
    Instead of giving
        languageHash.get("WELCOME");
    I gave
        new String(languageHash.get("WELCOME").getBytes("ISO-8859-1"),
"UTF-8");

regards,
jithesh.
----- Original Message ----- 
From: "Nadim Shaikli" <shaikli at yahoo dot com>
To: "jithesh" <jithesh at amlaki dot com>
Cc: <developer at arabeyes dot org>
Sent: Tuesday, November 23, 2004 11:07 PM
Subject: Re: Help regarding arabic in jsp


> --- jithesh <jithesh at amlaki dot com> wrote:
> > Hi,
> >    I am jithesh from India.
> >     I read ur post in the following URL.
> >
> > http://lists.arabeyes.org/archives/developer/2003/February/msg00037.html
> >     There u have specified that u stored the arabic characters in Oracle
8i
> > database and displayed correctly in a jsp page. My requirement is same.
I am
> > showing the                 arabic words in Oracle 8i database. Its
showing
> > characters like ' تار�S�� ا�"دفعة '.
>
> As is noted in that post - I am NOT familiar with Oracle and was merely
> suggesting UTF-8 encoding be used at ALL times.
>
> >     Here is my code...
> >
> >   <head><title> New Document </title>
> >   <meta http-equiv="Content-Type" content="text/html;
charset=windows-1256">
> >   </head>
> >   <body >
> >   <%@ page language="java" import="java.util.*,java.sql.*,sun.io.*"%>
> >   <jsp:useBean id="International" scope="page" class="jit.International"
/>
> >   <%
> >        Connection con=null;
> >        con=connect.popConn();
> >        International.loadHashtable("LNG1",con,"ARABIC");
> >        Hashtable languageHash = International.getHashtable("ARABIC");
> >        out.println( languageHash.get("WELCOME") );
> >        connect.pushConn( con );
> >    %>
> >   </body>
> >   </html>
> >
> >     What I am doing is I am loading all the arabic words in a hash
> > table and then retrieving and displaying in jsp page.
> >     This works perfectly in servlet but fails in jsp.
> >
> > Can u help me solving this problem.
>
> I'm forwarding this email (and your question) to the 'developer' list and
> I highly advise you to subscribe to the list and post all your future
> questions there for I won't answer (or forward) personal emails.
>
> Salam.
>
>  - Nadim
>
>
>
> __________________________________
> Do you Yahoo!?
> Meet the all-new My Yahoo! - Try it today!
> http://my.yahoo.com
>


--- End Message ---