users@jaxb.java.net

Re: Handling Special Chars

From: Robert Lowe <robertmlowe_at_rmlowe.com>
Date: Mon, 03 Oct 2005 07:12:40 +0800

Dmitri Colebatch wrote:

> XMLBeans gets around this by only including the xml decl if you use
>
>the OutputStream. Perhaps this is something that jaxb could consider.
>
>
My understanding is that the XML spec states that, if the XML
declaration is omitted, then the encoding is UTF-8 by implication.
Therefore, omitting the XML declaration really achieves nothing here.
Including an explicit declaration of 'encoding="utf-8"' is semantically
equivalent to omitting the declaration.

-- 
Best regards,
Robert Lowe
http://rmlowe.com/