groovy

StreamingMarkupBuilder assumes that the encoding is always known

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.5.2
  • Component/s: XML Processing
  • Labels:
    None
  • Number of attachments :
    0

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.

Activity

Hide
Paul King added a comment -

close off release 1.5.4

Show
Paul King added a comment - close off release 1.5.4

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: