CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

CCS Compiler and UTF-8 source code

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
julienm



Joined: 28 Jul 2020
Posts: 31

View user's profile Send private message

CCS Compiler and UTF-8 source code
PostPosted: Mon Mar 29, 2021 12:17 pm     Reply with quote

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: 19513

View user's profile Send private message

PostPosted: Tue Mar 30, 2021 1:15 am     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group