This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Special characters changing to %something%

 
Manigandan Velraj
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a search form whose method is post. i keep the the search criteria in session. From the search result screen when the user clicks previous button, i take the criteria s from the session and populate it in the fields.

But when i search using a criteria with special character and click on previous button, the special characters are changed to %something% (eg. space is change to +, # is changed to %24% , etc).

I use UFT-8 character set. my action class is using struts2.

Please help me in getting back my original criteria s.

Thanks in advance.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Un-URL-encode it.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic