|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Difficulty with ISO-8859-1 encoding:SOLVED
The answer: > ... The DTD file does not contain > an <?xml?> declaration, so the parser assumes that it is in UTF-8. It > doesn't matter that the DTD is being used from an ISO-8859-1 file--it's > still assumed to be in UTF-8. > > If the cent character in the DTD is encoded using ISO-8859-1, then this > is an illegal character in UTF-8, so the parser chokes. > > Either add the <?xml?> prefix to the DTD file, with the correct encoding, > or else store the cent character in the DTD using UTF-8. Or you could > store the cent character as ¢, so that it doesn't matter what > encoding you use. > > - Steve Dahl > sdahl@xxxxxxxxxxx Adding the <?xml version="1.0" encoding="ISO-8859-1"?> declaration to the DTD did the trick. The second method works too. Using <xsl:output encoding="ISO-8859-1"/> in the stylesheet handles it as expected on output as well, so I can easily do everything I need to do to manipulate data in Latin1 - hooray! ml XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








