Hi,
        did you use writeToString? If so then it ignores the setting in 
DOMWriter and gives back UTF-16.


Gareth

On Fri, 25 Jul 2003, Scott MacKay wrote:

> Hello,
>    I am playing around with some code based on the
> DOMPrint sample and am having a devil of a time
> getting the proper encoding indicator in the <?xml>
> statement.
> I know you can setEncoding() to UTF-8 on the DOMWriter
> you use to output the node.  I have done that and when
> I getEncoding() it show UTF-8, but the char stream
> output still shows UTF-16 in the actual <?xml> line. 
> This would be a document built from scratch.  Would
> anyone have an example of building a document and then
> outputting it with the UTF-8 encoding?  Thanks in
> advance!
> 
> -Scott
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
Gareth Reakes, Head of Product Development  +44-1865-203192
DecisionSoft Limited                        http://www.decisionsoft.com
XML Development and Services




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to