Subject: Re: Getiing Confused in Encoding Plz Help
From: Mike Brown <mike@xxxxxxxx>
Date: Wed, 5 Mar 2003 01:55:43 -0700 (MST)
|
asim wrote:
> now the html i m getting on the client shows me no japanese characters, but
> only questions marks "?"
> what could be the reason
>
> Set Source = server.CreateObject("MSXML2.DomDocument")
> Set stylesheet = server.CreateObject("MSXML2.DomDocument")
>
> ' Load data.
> Source.async = False
> Source.Load xmlfile.xml
>
> stylesheet.async = False
> stylesheet.Load xslfile.xsl
>
> HTMLText = source.transformNode(stylesheet)
>
> Response.Write HTMLText
You are probably casting the result to a UTF-16 string, which you are then
putting into an HTTP response that is probably labeled UTF-8 (the response
header overrides the HTML's meta tag).
See http://www.biglist.com/lists/xsl-list/archives/200108/msg00541.html
for ideas on how to properly prepare the response.
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
|