Uploaded image for project: 'Maven Doxia'
  1. Maven Doxia
  2. DOXIA-133

default XML encoding (UTF-8) or XML encoding set in XML files is ignored: inputEncoding is used instead

    Details

    • Flags:
      Patch

      Description

      Encoding can be specified per file, in the XML header: <?xml version="1.0" encoding="xxx"?>, or defaults to UTF-8

      But DefaultSiteRenderer class always read files with inputEncoding: reader = new InputStreamReader( new FileInputStream( fullPathDoc ), context.getInputEncoding() );

      When the source file is XML (xdoc, xhtml), should use XmlReader from PLXUTILS-11 to detect the XML stream encoding instead.

      Test case included in MSITE-239, site-plugin-test14

        Attachments

        1. DOXIA-133_doxia-siterenderer.diff
          3 kB
          Hervé Boutemy
        2. DOXIA-133_doxia.diff
          5 kB
          Hervé Boutemy
        3. DOXIA-133_doxia.diff
          6 kB
          Hervé Boutemy
        4. DOXIA-133_doxia.diff
          4 kB
          Hervé Boutemy

          Issue Links

            Activity

              People

              • Assignee:
                siveton Siveton Vincent
                Reporter:
                hboutemy Hervé Boutemy
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: