[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: strange encoding problem

Subject: Re: strange encoding problem
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Fri, 1 Nov 2002 12:20:09 +0000
atilde xml
Hi Andreas,

> PROBLEM:
>
> when i use tomcat, jsp and the jstl (java standard tag library) to apply the
> transformation
>
> <%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml" %>
> <c:import url="test.xml" var="xml"/>
> <c:import url="test.xsl" var="xsl"/>
> <x:transform xml="${xml}" xslt="${xsl}"/>
>
> the result is &Atilde;&frac14;
> which is NOT correct in my opinion.

When you say it's &Atilde;&frac14;, do you mean that when you open up
the result you actually see those entity references, or do you see the
actual characters ü?

I suspect it's the latter, in which case make sure that the text
editor (or whatever) that you're using to look at the result of the
transformation is reading in that result as UTF-8 rather than as
ISO-8859-1.

If the former, then something really weird's going on -- it looks as
though the result is being serialised as UTF-8, then read as
ISO-8859-1 and then serialised again using HTML entity references.
Perhaps knowing that's what's going on will help you track down the
bug...

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.