Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2473

StreamingMarkupBuilder assumes that the encoding is always known

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.5.2
    • XML Processing
    • 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.

      Attachments

        Activity

          People

            tug John Wilson
            jbaumann Joachim Baumann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: