Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    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.

  2. #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Saskatoon, Saskatchewan
    Thanked 2,668 Times in 2,637 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?
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts