[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] euro symbol problem on unix


Subject: RE: [xsl] euro symbol problem on unix
From: julie.f.mccabe@xxxxxxxxxxxx
Date: Thu, 21 Mar 2002 14:16:49 +0000






julian.reschke@xxxxxx@... on 03/21/2002 09:00:06 AM

Please respond to xsl-list@xxxxxxxxxxxxxxxxxxxxxx

Sent by:    owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx


To:    xsl-list@xxxxxxxxxxxxxxxxxxxxxx
cc:
Subject:    RE: [xsl] euro symbol problem on unix


> > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
> > julie.f.mccabe@xxxxxxxxxxxx
> > Sent: Thursday, March 21, 2002 1:06 PM
> > To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> > Subject: [xsl] euro symbol problem on unix
> >
> >
> > Hello
> >
> > Problem
> >
> > Xml file created using DOM (xerces 1.4.1) displays the euro sign
> > correctly,
> > after an xslt to xml using jdk1.3.0.2 the euro symbol is displayed as
?.
> > When I run the same test on a PC the euro symbol is displayed in both
> > cases.
> >
> > There is a patch which should be applied on unix to display the euro
> > symbol, this has been installed.  UTF-8 encoding is specificed in both
> the
> > xml file and the xslt stylesheet, plus version 1.0 in the
> <xsl:stylesheet>
> > tag.  Any ideas?
>
> Which character *are* you using. If it displays "correctly" on PCs, but
> doesn't on Unix you might have used the wrong Unicode character (the
> correct
> one is: "&#20ac;").
>
> I am using &#8364;

The code is correct.

Then you probably have a problem in how the transformation result is
written
to a byte stream.

It is written out as
String filename = ...
String fileContent = (contains result of transformation)
BufferedWriter writer = new BufferedWriter(new FileWriter(filename));
writer.write(fileContent);


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





This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase & Co., its
subsidiaries and affiliates.


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



Current Thread
Keywords