Subject: Re: [xsl] strange encoding problem From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx> Date: Fri, 1 Nov 2002 12:20:09 +0000 |
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 ü > which is NOT correct in my opinion. When you say it's ü, 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] strange encoding problem, Andreas Schildbach | Thread | Re: [xsl] strange encoding problem, Mike Brown |
[xsl] strange encoding problem, Andreas Schildbach | Date | [xsl] output an apostrophe, aruniima . chakrabar |
Month |