Subject: Re: [xsl] Encoding problem. From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx> Date: Fri, 16 Aug 2002 15:17:12 +0100 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Encoding problem., Søren C Halling | Thread | SV: [xsl] Encoding problem., Søren C Halling |
RE: [xsl] Path problem in xsl:docum, Srinivas Ch | Date | [xsl] whitespace problem, Zoe Peng |
Month |