Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

decodeURIComponent or unescape question

Status
Not open for further replies.

youngApprentice

Programmer
Jan 28, 2007
16
0
0
US
Anyone have any ideas on why an apostrophe comes from the server (using JSP) as the numeric entity code of ampersandpound39semicolon and I can't use decodeURI or decodeURIComponent to turn it into ' ?
Naturally I mean the symbols where I typed them out.

If I use %27 I get the apostrophe when decoding, but if I use the server supplied numeric entity code I get the numeric entity code instead of the single apostrophe.

TIA,
youngApprentice
 
You probably need to add an ' escapeXml="false" ' attribute to your output statement (assuming you're using the c taglib). If you're not, I'd ask in the JSP / Java forums for more information on how to stop this from happening.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top