The knowledge base is no longer actively updated, we have moved all content to our Community Support Forum
Unicode and Byte Order Mark (BOM)
| Author: BitRock Support Date: January 07, 2010 10:52 Tags: |
Multiple language support
Installer Variables |
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>
|