This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]