Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Special characters changing to %something%

 
Manigandan Velraj
Greenhorn
Posts: 14
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Un-URL-encode it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic