Subject: Re: Getiing Confused in Encoding Plz Help
From: Mike Brown <mike@xxxxxxxx>
Date: Wed, 5 Mar 2003 00:09:54 -0700 (MST)
|
asim wrote:
> when i give this encoding tag
> <?xml version="1.0" encoding="iso-8859-1"?>
> on the top of my xsl files
...you are making the assertion that the bytes of the file can be converted
to Unicode characters according to the iso-8859-1 character map.
> and then save them using visual studio.net save
> as encoding and i choose UTF-8(without signature)
...so it is a utf-8 file and you have mislabeled it as iso-8859-1. This is the
wrong thing to do. You are required by XML 1.0 to provide an accurate encoding
declaration. Change the declaration to encoding="utf-8" so that the XML parser
reading the file will be able to properly decode the file's bytes.
This is true for any XML, not just XSL.
Mike
--
Mike J. Brown | http://skew.org/~mike/resume/
Denver, CO, USA | http://skew.org/xml/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|