Next in thread → Next in month →

Re: [xml-dev] Sharing Techniques: White Spaces in HTML pages by XSLT

From
Jonathan Perret <>
To
Date
2001-11-29T16:08:23Z
ID
<037501c178f0$125a8190$e1010a0a@jperret>
Thread
Re: [xml-dev] Sharing Techniques: White Spaces in HTML pages by XSLT
> If you're transforming from ASP, getting the right encoding out is a bit
> tricky.
> The naive way :
>     Response.Write doc.transformNode(stylesheet)
> will make the XSL processor produce UTF-16, which will then be converted
> to iso-8859-1 (actually, to whatever codepage was specified through
> Response.CodePage) for sending to the client by Response.Write.
> And it gets you in trouble because MSXML, thanks to the method="html"
> attribute, will still have inserted a META tag which describes the
document
> as being in iso-8851-1, and ASP won't touch it. The browser may get
> quite confused (IE does).

Sorry: actually the META tag says that the HTML is in UTF-16,
but the client gets it in iso-8859-1 from ASP. In any case, the client
is confused.

Cheers
Jonathan
Next in thread → Next in month →