Problem with local encoding
Posted: Tue Dec 01, 2020 2:31 pm
I am using German local encoding in cpp source files (in comments and strings to be displayed on the sceen). The files are generated (e. g. wxCrafter) and initially come with UTF-8 encoding.
Obviously UTF-8 will spoil the characters during compilation. So far so clear.
When I convert the source files to ANSI coding (using Notepad++) I have no problems, neither with the display in the Codelite Editor nor during compilation.
I tried to set the Codelite preferences to ISO-8859-1, but it looks like the file conversion during file save is not working. The source files stay with UTF-8 (fortunately also with ANSI when I have converted them manually). If I create a new file, coding is shown as Windows-1255 (again according to Notepad++) which is Hebrew !
What am I doing wrong?
Obviously UTF-8 will spoil the characters during compilation. So far so clear.
When I convert the source files to ANSI coding (using Notepad++) I have no problems, neither with the display in the Codelite Editor nor during compilation.
I tried to set the Codelite preferences to ISO-8859-1, but it looks like the file conversion during file save is not working. The source files stay with UTF-8 (fortunately also with ANSI when I have converted them manually). If I create a new file, coding is shown as Windows-1255 (again according to Notepad++) which is Hebrew !
What am I doing wrong?