Hi,

  The requirment is simple:
  1)Get the japnese text in UTF 8 format form oracle
  2)Display it in a browser which could show only SJIS or EUC_JP encoding.

   I use the following code to convert from UTF8 to EUC_JP format.
                testShipTo=new String(testShipTo.getBytes("UTF8"),"UTF8");
                out.println("<BR>"+testShipTo+"Is the old String");
            testcoded=testShipTo.getBytes("EUC_JP");
            testShipTo=new String(testcoded,"EUC_JP");
             out.println("<BR>"+testShipTo+"Is the new String");
I have set my contenttype to EUC_JP.

I have the following output
  1)When browser encoding is set in UNIcode mode it displays the japnese
texts properly.
  2)When set in EUC mode the out is not proper.
Can any one has any suggestion.
Regards
Muthu
> -----Original Message-----
> From: Puranam, Muthukumar (GEP)
> Sent: Wednesday, September 13, 2000 1:41 PM
> To:   '[EMAIL PROTECTED]'
> Subject:
>
> I need to convert the UTF8  code format in Oracle database to be displayed
> in the imode browser which
> supports only SHIFT_JIS or EUC_JP formats.
> How to do that?
> Regards
> MuthuKumar PB
>
> Note
> I use the conventional java.Lang.String
> methods(i.e.String.getBytes("UTF8")and
> String (byte[],"SJIS") constructor).to accomplish this.
> But output is not proper in browser.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to