Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Trouble with character translation

Posted on 2004-11-08
Medium Priority
Last Modified: 2013-12-03
I have a form  in a jsp with these two fields

<input type="hidden" name="i_unitcurrency" value='&pound;'>&pound;
<input type="hidden" name="i_unitcurrency" value='&euro;'>&euro;

When I use        String unitCurrencyArray[] = request.getParameterValues("i_unitcurrency");  

to retrieve the values I get  UTF-8 character codes in  unitCurrencyArray[] as opposed to the &pound; &euro; that I want.

How do I prevent the character translation ?
Question by:mikehalfsheen
  • 2
LVL 35

Accepted Solution

TimYates earned 2000 total points
ID: 12522595
<input type="hidden" name="i_unitcurrency" value='&amp;pound;'>&pound;
<input type="hidden" name="i_unitcurrency" value='&amp;euro;'>&euro;

Might do it...

The browser should convert these to the correct values for you :-)

Author Comment

ID: 12522877
Obviously really I suppose :) Thanks, I don't know what I'd do without you ;)
LVL 35

Expert Comment

ID: 12522917
It's only obvious when you know ;-)

Glad I could help!

Good luck with it!


Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
"Day by day nothing changes but when u look back, everything is different". That quote precisely describes today’s digital era. For example, you may not have noticed the change, but Voice Search is now all around us.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question