Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in handling the special spanish Character

 
Girjesh Trivedi
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. but I am using Weblogic.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic