Description
My original patch for MPLUGIN-76 has an unintended side effect: OutputStreamWriter.getEncoding() does not exactly report back the encoding supplied in the constructor. On a Sun JDK 1.6.0_04 for Windows, I observed that getEncoding() returnes "UTF8" instead of "UTF-8" as supplied in the constructor.
This might not be an issue as long as the XML file is only processed by Java-based code, but
- the XML spec suggests to use the string "UTF-8" to indicate that encoding
- the IANA charset database does not mention "UTF8" as a valid alias for "UTF-8"
- some non-Java programs really fail on parsing such a XML due to "unsupported encoding"
Attachments
Attachments
Issue Links
- is related to
-
MPLUGIN-76 Fixed file encoding employed by PluginXDocGenerator
- Closed