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

x
?
Solved

Trouble with character translation

Posted on 2004-11-08
3
Medium Priority
?
267 Views
Last Modified: 2013-12-03
Hi,
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 ?
0
Comment
Question by:mikehalfsheen
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
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 :-)
0
 

Author Comment

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

Expert Comment

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

Glad I could help!

Good luck with it!

Tim
0

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