Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4416

Ability to specify an encoding for config files

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: fileinstall-3.2.6
    • Fix Version/s: fileinstall-3.6.2
    • Component/s: File Install
    • Labels:
      None
    • Environment:
      Karaf 2.3.3

      Description

      FileInstall always use ISO-8859-1 for reading cfg file, even if the CFG file is not encoded in ISO-8859-1.

      So when the CFG file contains non-ascii characters, those characters are "transformed" during parsing. Typically my file contains the line "error.message.210=Identifiant d'entité cible invalide" (without the "") but after FileInstall parsing, my string is transformed into "Identifiant d'entité cible invalide" (still without the "").

      The org.apache.felix.utils.properties.Properties class has a default encoding defined to ISO-8859-1,which is always used whatever the actual file encoding is.

        Attachments

          Activity

            People

            • Assignee:
              gnodet Guillaume Nodet
              Reporter:
              acartapanis Alexandre Cartapanis
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: