Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-6337

Auto-detect file charset based on BOM

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.2
    • Component/s: Scanner
    • Labels:
      None

      Description

      Currently the property sonar.sourceEncoding is defined for the whole module and it is not possible to have some files with different encoding.
      Like IDEs and SCM tools we could:

      • provide some auto-detection (based on content, or BOM, or headers for XML files)
      • provide advanced configuration to force encoding per file (but this is configuration hell)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                julien.henry Julien Henry
                Reporter:
                henryju OLD - Julien HENRY
              • Votes:
                3 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: