File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes HTML form data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "HTML form data" Watch "HTML form data" New topic

HTML form data

maher dabbas

Joined: Dec 02, 2001
Posts: 26
I'm sending a text from an HTML form to a JSP,
the text is written in arabic, when i access it in th JSP using request.getParameter() and print it using the out object, a garbage is printed out, and i need to change the browser encoding by myself to view the data correctly,i used <meta HTTP-EQUIV=CONTENT-TYPE CONTENT="TEXT/HTML;CHARSET=WINDOWS-1256> in the HTML document , but it did not work, i've used
<%@page contentType="text/html;charset=WINDOWS-1256" %> in the JSP , but set of ??? is printed.
Any ideas please.
Regards .
Maher Dabbas
I agree. Here's the link:
subject: HTML form data
It's not a secret anymore!