Hi
I use in jsp body
<%@ page contentType="text/html; charset=windows-1251" %>
windows-1251 - this is Russian  you should change it on yours
and then you needn't use any translation like that
String greek = new String(str,"ISO-8859-7");

----- Original Message -----
From: Rathna <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 04, 2000 7:35 AM
Subject: How do i display a greek character in JSP? - Urgent ...


> hi all,
>
> I have to display a greek character in the JSP page.
> i am constructing the string object as follows,
>
>     <% byte[] str= new byte("O���� O�� ������");
>     String greek = new String(str,"ISO-8859-7");
>     out.println(greek); %>
>
> but when the Jrun Interprets the code it gives me
> javax.servlet.ServletException: Invalid UTF-8 code. (bytes: 0xfffffff4
> 0xffffffef) Error.
>
> How do i display the languages which is other than english in the JSP
> pages?
>
> FYI, i don't want to set the html charset as greek code since only few
> information in the page is greek and rest of it is english.
>
> I badly need to rectify this problem and any early reply will help me a
> lot....
>
> thanks for your time ...
>
> --
> with rgds,
>     rathna
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> 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
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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