File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Special characters changing to %something% Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Special characters changing to %something%" Watch "Special characters changing to %something%" New topic
Author

Special characters changing to %something%

Manigandan Velraj
Greenhorn

Joined: Nov 30, 2009
Posts: 14
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

Joined: Sep 29, 2008
Posts: 12617

Un-URL-encode it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Special characters changing to %something%