[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: outputting <?xml version="1.0" encoding="UTF-8" ?>

Subject: Re: outputting <?xml version="1.0" encoding="UTF-8" ?>
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 15 Sep 2006 13:37:17 +0100
xml version 1.0 encoding utf8
> My problem is that the <?xml version="1.0" encoding="UTF-8" ?> which
> should appear at the top as a header, doesn't.

Is that really a problem? the xml declaration is optional.
Also are you sure that you are outputting in utf8?

I don't really read vb but I don't think you are serialising the output
using xslt (so using the xsl:output parameters) as you are sending stuff
to an XmlTextWriter, but doesnt System.Text.Encoding.Unicode specify
utf16 rather than utf8 ?

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconinputsoutputstoxsltransform.asp

Note   *the encoding attribute is ignored when the
XslTransform.Transform method is sending its output to a TextWriter. The
encoding property on the TextWriter is used instead.

David

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.