Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
The code cannot always tell the encoding being used by the Writer. In the case of StringWriter, for example, no encoding is being used. In this case the code assumes USASCII. So it escapes all characters with values > 127. This is perfectly good behaviour and will ensure that no data is lost in nearly all encodings.
However, the implementation generating the XML header assumes that the encoding is always known.