Subject: Re: Microsoft.XMLDOM UTF-8 Encoding!
From: "[Tech]" <tech@xxxxxxxxxxx>
Date: Sat, 12 Jul 2003 07:27:30 -0400
|
I repeat,
I dont have problem to parse the XML. All caracters are UTF-8 encoding.
So response.write(dom.transformNode(xsl)) show the writh thing!
OK, let me show you!
Go here : http://www.trucsweb.com/rss/sauve3.asp
You can enter all non-us car and it will be UTF-8.
You see it's work good.
But try open the xml file directly in IE (or Mozilla the same)...
tx
----- Original Message -----
From: "Julian Reschke" <julian.reschke@xxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Saturday, July 12, 2003 2:57 AM
Subject: RE: Microsoft.XMLDOM UTF-8 Encoding!
> > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of [Tech]
> > Sent: Saturday, July 12, 2003 1:03 AM
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject: Re: Microsoft.XMLDOM UTF-8 Encoding!
> >
> >
> > Exact,
> >
> > The first byte supose to tell the encoding.
>
> The first bytes *may* tell the encoding.
>
> > Like this UTF-16 => "Unicode byte-order mark [0xFF 0xFE] or [0xFE 0xFF]"
> >
> > But Microsoft (and lot more) say that XML file generate with ASP
> > and XMLDOM
> > are UTF-8 by default. (no byte was added to the file...)
>
> It doesn't need to.
>
> > So, How tell "Microsoft.XMLDOM" to save my XML file with a true UTF-8
> > encoding?
>
> To *save* a DOM in UTF-8, do what you're already doing (create the XML
> declaration using MSXML's createProcessingInstruction() and save the
file).
>
> However the issue seems to be *serving* XML to a client. You'll need to
show
> us *that* ASP code to find the problem. It's almost certainly an
unnecessary
> round-trip of the XML serialization trough a string, such as
>
> response.write(dom.xml)
>
> or
>
> response.write(dom1.transformNode(dom2))
>
> which *will* break encoding information.
>
> Julian
>
> --
> <green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- RE: Microsoft.XMLDOM UTF-8 Encoding!, (continued)
- Julian Reschke - Fri, 11 Jul 2003 17:53:34 -0400 (EDT)
- Rob Rohan - Fri, 11 Jul 2003 18:29:56 -0400 (EDT)
- [Tech] - Fri, 11 Jul 2003 19:03:27 -0400 (EDT)
- Julian Reschke - Sat, 12 Jul 2003 02:58:18 -0400 (EDT)
- [Tech] - Sat, 12 Jul 2003 07:28:12 -0400 (EDT) <=
- Dimitre Novatchev - Sat, 12 Jul 2003 08:40:50 -0400 (EDT)
- [Tech] - Sat, 12 Jul 2003 09:03:47 -0400 (EDT)
- Dimitre Novatchev - Sat, 12 Jul 2003 11:04:10 -0400 (EDT)
- [Tech] - Sat, 12 Jul 2003 12:14:46 -0400 (EDT)
|
|