Hey,
why does the editor of RobotStudio change the file format of a .txt file to UTF-8-BOM?
(Open a .txt file from the controller, edit it and “apply” the changes (rapid tab))
UTF-8-BOM adds an unnecessary 3 bytes sequence at the start of the file: “” (0xEF, 0xBB, 0xBF) that describes the byte ordering (little endian / big endian) (which is not available for UTF8)
According to the Unicode Standard: “Use of a BOM is neither required nor recommended for UTF-8” [http://www.unicode.org/versions/Unicode5.0.0/ch02.pdf Page 36]
Due to that behavior, I have to check each .txt file for that BOM header and remove it in RAPID code