Uploaded image for project: 'Maven PMD Plugin'
  1. Maven PMD Plugin
  2. MPMD-55

The Xml pmd file isn't encode to UTF8 charset counter the charset declaration in the file header

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3
    • Component/s: None
    • Labels:
      None
    • Flags:
      Patch

      Description

      The Xml file (target/pmd.xml) declare an UTF-8 encoding: "<?xml version="1.0" encoding="UTF-8"?>" but use the FileWriter API that encode caracter with the default charset of the platform.
      Non ACSII caracter couldn't be read and xml file couldn't be parsed with Xml Parser due to this error.

      The patch contains the testcode and the correction

        Attachments

        1. MPMD-55-FIX.TXT
          0.5 kB
          Xavier Le Vourch
        2. PMD-UTF8-Encode.patch
          10 kB
          Philippe Kernevez

          Issue Links

            Activity

              People

              • Assignee:
                dkulp Daniel Kulp
                Reporter:
                pkernevez Philippe Kernevez
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: