Maven
  1. Maven
  2. MNG-2215

Change the default input/output encoding to UTF-8 instead of ISO-8859-1

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0, 2.0.1, 2.0.2, 2.0.3
    • Fix Version/s: None
    • Component/s: POM::Encoding
    • Labels:
      None

      Description

      Currently, all input and output encodings of source code and site are ISO-8859-1 by default. UTF-8 covers all characters in ISO-8859-1 without any migration, and moreover, it supports other characters which ISO-8859-1 cannot cover such as Korean and Japanese. Changing the default encodings to UTF-8 will be great because some plugins might not provide any configuration properties for encodings but uses some default values. For example, maven site plugin didn't have an input encoding property. If the default encoding is ISO-8859-1, people doesn't have any chance to express their native language at all (e.g. source code comments, site documentation, ...). If the default encoding is UTF-8 at least, they could use their native language at least.

      To do this,

      1) Change all default values which are ISO-8859-1 to UTF-8
      2) Set VM system property: -Dfile.encoding=UTF-8 for the plugins which doesn't consider encodings at all.

        Issue Links

          Activity

          Trustin Lee created issue -
          Carlos Sanchez made changes -
          Field Original Value New Value
          Link This issue is related to MNG-2254 [ MNG-2254 ]
          Hide
          Carlos Sanchez added a comment -

          It's not a matter of changing the default but spporting different encodings.
          And no, iso-8859-1 chars don't map directly to UTF-8, eg acentuated chars are diferent

          Show
          Carlos Sanchez added a comment - It's not a matter of changing the default but spporting different encodings. And no, iso-8859-1 chars don't map directly to UTF-8, eg acentuated chars are diferent
          Carlos Sanchez made changes -
          Resolution Won't Fix [ 2 ]
          Status Open [ 1 ] Closed [ 6 ]
          Assignee Carlos Sanchez [ carlos ]
          Jason van Zyl made changes -
          Component/s General [ 12033 ]
          Component/s POM::Encoding [ 12860 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          Mark Thomas made changes -
          Workflow jira [ 12712868 ] Default workflow, editable Closed status [ 12752586 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Workflow jira [ 12949794 ] Default workflow, editable Closed status [ 12986005 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          25d 13h 54m 1 Carlos Sanchez 03/May/06 12:38

            People

            • Assignee:
              Carlos Sanchez
              Reporter:
              Trustin Lee
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development