Hi,
        there are other methods in DOMwriter that will write out as UTF-8 
if that is helpful to you.

Gareth



On Fri, 25 Jul 2003, Scott MacKay wrote:

> Ah, yup.  I use writeToString.  The problem I have
> with UTH-16 seems to be that Java's
> DocumentBuilder.parse() does not seem to like UTF-16. 
> I build up a ByteArrayInputStream from a String
> representation of the output (I use a C++ Xerces app
> to construct, send to a Java app).   If I have UTF-16
> I always get a sun.io.malformedInputException
> (comment: "missing byte order mark").  If I strstr it
> to UTF-8, it is happy...
> 
> -Scott
> 
> 
> 
> --- Gareth Reakes <[EMAIL PROTECTED]> wrote:
> > Hi,
> >     did you use writeToString? If so then it ignores
> > the setting in 
> > DOMWriter and gives back UTF-16.
> > 
> > 
> 
> 
> __________________________________
> 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