Comments

1 comment

  • Avatar
    Jake

    Certain Unicode-encoded files (typically those created by Windows utilities) will include a BOM. If you read the contents of such a file and need to remove it, you can do as follows:

    <readFile>
       <encoding>unicode</encoding>
       <name>text</name>
       <path>/path/to/file.txt</path>
    </readFile>
    <setInstallerVariableFromRegEx>
       <name>text</name>
       <pattern>\uFEFF</pattern>
       <substitution></substitution>
       <text>${text}</text>
    </setInstallerVariableFromRegEx>

Please sign in to leave a comment.