This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Encoding problem.
- From: Jeni Tennison <jeni at jenitennison dot com>
- To: Søren C Halling <sch at e-sense dot dk>
- Cc: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 16 Aug 2002 15:17:12 +0100
- Subject: Re: [xsl] Encoding problem.
- Organization: Jeni Tennison Consulting Ltd
- References: <41CCB13A93778541A097B6227AB858C04423C8@shipman.esense.esense.dk>
- Reply-to: xsl-list at lists dot mulberrytech dot com
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