xsl-list
[Top] [All Lists]

Microsoft.XMLDOM UTF-8 Encoding!

2003-07-11 14:22:04
Hi,

I create a valid UTF-8 encoding XML file with "Microsoft.XMLDOM".
It's OK when a parse my XML/XSL with ASP.

But not if I open the file directly with Mozilla or IE

1. My XML file are OK
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="sauve.xsl"?>

2. My XSL file
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output method="html" encoding="UTF-8" indent="no"/>

3. And I force the "Content-Type"!
<xsl:template match="/">
   ...
=>>> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  ...

Mozilla say (File info tab) that is "ISO" file but say about "Content-Type"
== >text/html; charset=UTF-8

Gorgeous!

Tx


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list