Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Invalid
-
current (nightly)
-
None
-
None
-
Win2k, Sun JDK 1.4.2
Description
When specifying an XML encoding as follows:
marshaller.setProperty(Marshaller.JAXB_ENCODING, "ISO-8859-1");
I get an UnsupportedEncodingException because OutputStreamWriter uses the string "8859_1" to represent this encoding.
But when I use it like this:
marshaller.setProperty(Marshaller.JAXB_ENCODING, "8859_1");
I get this in the XML:
<?xml version='1.0' encoding='8859_1'?>
but it should be:
<?xml version='1.0' encoding='ISO-8859-1'?>
otherwise the XML parser will not know what encoding it is.