aspose file tools
The moose likes JSP and the fly likes Problem in handling the special spanish Character Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Problem in handling the special spanish Character
 
Similar Threads
Problem while storing Japanese characters in Oracle 9i
Can I get actionscript values into a servlet?
Recipe 4 strange characters ?
JSTL not working
include file Directive not working properly. Variable not resolved in jsp