Manage Special Characters
In the JSP there is a field: <input name="award" value="AV® Preeminent™" />
After the submit to the java side, i.e., via request.getParameter("award"); the value changes for ® and ™. As the result, the value on the java side becomes : AVÂ® Preeminentâ˘.
Basically, both the ® and ™ are changed into different characters.
OS: Windows 7
Browser: IE 8, Firefox 20, and latest version of Chrome 26.
Thanks to help.
I don't do *any* JSP development (since I hate it that much :P), but the first thing to look for is whether these characters are actually different, or if its simply an encoding issue with display. Start by walking through the char array and checking each of the char's ascii/unicode values to see if they are the correct value. If so, its likely just a charset/encoding issue affecting output.
Is that value actually hardcoded in as well, or is that what has been typed into the text field?
|All times are GMT +1. The time now is 06:31 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.