I will tell you how I handle the umlauts (special characters in German).
While printing print them as
String gText = "äbcdö" // ä is the code for printing the a
umlaut
The browser will print the ä as the a umlaut.
Similarly after the user has keyed in the text, using a JavaScript function
you can convert the text to the html code before the form is submitted.
Note: This will increase the size of the text. For example, if the user
has keyed in 2 umlauts, the size will increase by 8.
Regards,
Nagaraj.
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Rathna
Sent: Monday, December 04, 2000 5:36 AM
To: [EMAIL PROTECTED]
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