Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Manage Special Characters
04-15-2013, 04:45 PM #1
- Join Date
- Apr 2007
- Thanked 0 Times in 0 Posts
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.
04-16-2013, 09:29 PM #2
- Join Date
- Sep 2002
- Saskatoon, Saskatchewan
- Thanked 2,662 Times in 2,631 Posts
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?
Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)PHP Code:
header('HTTP/1.1 420 Enhance Your Calm');