Uploaded image for project: 'Maven Resources Plugin'
  1. Maven Resources Plugin
  2. MRESOURCES-171

ISO8859-1 properties files get changed into UTF-8 when filtered

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.2.0
    • filtering
    • None

    Description

      Create:

      src/main/resources/test.properties

      And add a ISO8859-1 character that is not ASCII or UTF-8, do not use \uXXXX formatting.

      When adding this line:

      <resource><directory>src/main/resources</directory><filtering>true</filtering></resource>

      Expected:

      ISO8859-1 encoded file in jar.

      Actual:

      UTF-8 encoded file in jar.

      If there are any property files (which can only be ISO8859-1) they appear to be converted into UTF-8 in the jar.

      Attachments

        1. filtering-bug.zip
          29 kB
          Alex Collins

        Issue Links

          Activity

            People

              dennisl Dennis Lundberg
              alex.e.c Alex Collins
              Votes:
              4 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: