I have upgraded to CrossWorks for ARM version 4.9 and I am now getting an "Error Decoding File" warning message when I open certain files, what does this warning mean and how do I fix it?
CrossWorks for ARM version 4.9 introduced a new "Error Decoding File" warning message that is displayed when a file is loaded into the editor and the editor determines that if it saved the file immediately, without any changes being made to the file, the saved file would be different to the one it loaded. This typically happens if the text file has been saved using a different encoding to the one being used to load the file.
There is also a change in behaviour in the Windows version of CrossWorks for ARM 4.9 which is that the default encoding is now UTF-8 which brings it into line with the Linux and macOS versions. This means that if no encoding has been specified you may see this error when loading a file saved using a previous Windows version of CrossWorks.
To solve this problem you will need to specify the encoding you want to use.
File encoding can be specified using the Code > File > File Encoding project property or globally using the Text Editor > Default Text File Encoding environment option.
Comments
0 comments
Please sign in to leave a comment.