wood burning stoves*
The moose likes JSP and the fly likes Problem in handling the special spanish Character Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Problem in handling the special spanish Character " Watch "Problem in handling the special spanish Character " New topic
Author

Problem in handling the special spanish Character

Girjesh Trivedi
Greenhorn

Joined: Nov 16, 2005
Posts: 9
Problem in handling the special spanish Character :

We pass some parameters to a java class through a JSP by using Ajax request.

Before passing those parameters we use escape(params); java scritp function. then append them to url and pass them through Post method.

JSP page has set the following settings.
<% response.setContentType("text/html;charset=ISO-8859-1"); %>
<% request.setCharacterEncoding("ISO-8859-1"); %>

When I retrive them in java file using String s_params = req.getParameter("s_params"); then special character displayed as square box.

Please help me to fix the problem.
Rodolfo Baeza
Greenhorn

Joined: Sep 08, 2003
Posts: 3
Hi, if you are using Tomcat maybe you can try using the filter from this page: http://wiki.apache.org/tomcat/Tomcat/UTF-8

That solved my encoding problems with words with accents in spanish.
Girjesh Trivedi
Greenhorn

Joined: Nov 16, 2005
Posts: 9
Thanks. but I am using Weblogic.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in handling the special spanish Character
 
Similar Threads
include file Directive not working properly. Variable not resolved in jsp
Recipe 4 strange characters ?
JSTL not working
Problem while storing Japanese characters in Oracle 9i
Can I get actionscript values into a servlet?