Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XSL Transform of % Special Characters

843834Sep 17 2002 — edited Sep 18 2002
Our application produces some XML which we then transform, using a stylesheet, in to HTML. The XML contains some special HTML characters (e.g. string in the form "%CATEGORY" and "%ABBREVIATION"). When this is displayed in a Browser as a HREF it looks OK. However, when this link is clicked we call a JavaScript routine passing the string as a parameter. When it gets to the JavaScript routine the parameter has been 'converted' in the form of strange characters (eg. the "%AB" gets converted to "<<").

I believe this is due to it being interpreted a certain way. How do I get round this problem ? I've tried adding a charset of UTF8 and encoding but can't get anything to work. I am using the standard Transformer classes for my conversion, but even setting the encoding for that doesn't solve the problem.

Thanks.

Sarah.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 16 2002
Added on Sep 17 2002
4 comments
440 views