OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: JAXP and docbook-xsl Stylesheets



Simon,

A HUGE thank you!  Yes, after spending hours
trying to figure this out, all I needed to
do was change this:

transformer.setOutputProperty(OutputKeys.ENCODING,"UTF-8");

to this:

transformer.setOutputProperty(OutputKeys.ENCODING,"ISO-8859-1");

--
Don


> This sounds like an encoding problem. When your xml 
> file has latin1 encoding (iso-8859-1), non-breaking 
> space is a single character of value A0. When your xml 
> file has utf-8 encoding, non-breaking space consist of 
> two bytes. If you mix both, that is, when the xml file
> declares utf-8 encoding but non-breaking space is written 
> in the latin-1 manner as a single byte A0, your XML file 
> is not valid.




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]