Is CCS Compiler able to work with .c files encoded in UTF-8?
We have our entire repository in UTF-8 for compatibly reasons but I see a few characters like § or ° that don't show properly in CCS IDE.
I work with v5.080, will they compile fine?
Ttelmah
Joined: 11 Mar 2010 Posts: 19535
Posted: Tue Mar 30, 2021 1:15 am
Will probably cause issues.
The bottom 128 characters of UTF-8 are compatible with the standard
ASCII set. If only these are used, CCS should happily work. However if
you have characters that are displaying incorrectly, it almost certainly implies
that characters outside this range have been used. These may well cause
issues. Be aware that you could run the file through one of the online
UTF-8 to ASCII converters. The resulting file is still technically UTF-8
(since ASCII is a subset of UTF-8), but you can then edit any characters
that display incorrectly, and this will then be fully happy to be compiled.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum