Reading and writing files in the specific encodings
BigFix agent uses UTF-8 as the internal representation of strings.
When data is written to a file or read from a file, text is transcoded from the local encoding to
UTF-8 or viceversa, unless the file is already UTF-8. Using the encoding inspector, you can now
specify to read and write a file in a specific encoding. You can use the inspector in an action
or in a relevance expression:
- To read a file in a specific encoding you can specify the encode in the
file content,file lineandfile sectioninspectors. - To write a file in a specific encoding you can specify the
action uses fileencoding command along with theappendfileandcreatefile untilcommands.