xsl-list
[Top] [All Lists]

Re: MSXML / NBSP problem and resolution

2002-11-07 10:47:32


Question: Should you get the UTF-16 meta-tag if you explicitly define the charset in the output method to ISO-8859-1?

yes. If the output is in utf16 (which it often is with msxml whatever
you request in xsl:output.

this is why the XSLt spec specifies that the system add the meta element: the stylesheet author can not do this accurately as (s)he has
no direct control over the acyual encoding in teh output, xsl:output is
just a hint.

If the output is UTF-16, and the only way to change this is with Response.Charset (lets consider this inelegant, more of a bandaid than a solution), maybe the correct approach is a bit off the beaten path. The whole discussion started as a way to correctly render a page in a browser encoded as UTF-16 in a browser. A certain character (non-breaking space) was needed to get the page rendered correctly when encoded in ISO-8859-1. Is there a similar UTF-16 character anyone knows of?

M


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