Bad characters from httpservletrequest.getparameter
Posted on 2009-02-22
Copy paste characters from outlook/word to text area and they get translated into something unreadable. For example copy paste the following string from outlook:
This is a test - dash, comma ) paren } curly brace ' single quote " double quote > greater than ? question mark . period & amber % percent $ dollar + plus
After reading it from the httpservletrequest it looks like this:
This is a test Ã¢Â€Â“ dash, comma ) paren } curly brace Ã¢Â€Â˜ single quote Ã¢Â€Âœ double quote > greater than ? question mark . period & amber % percent $ dollar + plus
The application is using JSPs with Spring 1.1.4 to call the appropriate class/method in java (1.5.15). It looks ok in the JSP before submitting the form.
Does anyone have any ideas?