[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Encoding problem.
Hi Søren, > The top of my xslt looks like this: > > <?xml version="1.0" encoding="ISO-8859-1"?> > <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:msxsl="urn:schemas-microsoft-com:xslt" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > <xsl:output method="html" version="4.0" indent="yes"/> > > ... here transforming a lot of templates... > > My problem is that when I view my HTML page in my browser (IE6.0) it > chooses the wrong typeset(Unicode). I do not get my danish letter > transformed... even though ISO-8859-1 includes them. Do anyone have > any ideas? Try fixing the encoding of the *output* to ISO-8859-1. The encoding attribute on the XML declaration just talks about the XML file itself. You want to tell MSXML to use the ISO-8859-1 encoding on the output it generates: <xsl:output method="html" version="4.0" indent="yes" encoding="ISO-8859-1" /> Also, make sure that you're not hand-generating a Content-Type meta element in the head of your HTML document -- that will get generated for you by the processor. And make sure that your source document is actually in the encoding that it says it's in! Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/ 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
|