[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Encoding problem.

Subject: Re: Encoding problem.
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Fri, 16 Aug 2002 15:17:12 +0100
ie6 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.