Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Can project has a "encoding" property?
nanyu:
Can project has a "encoding" property?
when I create a new class by "File->New->Class", the Wizards create new cpp and header files, but they are allways encoding with "system default". I have to change the encoding to "utf-8". can the class wizard set the files encoding after read the setting from project or the global setting?
mariocup:
Set the encoding in the menu settings->editor in the general settings choose "Use encoding when opening files" UTF-8.
Jenna:
--- Quote from: mariocup on August 23, 2009, 09:28:57 am ---Set the encoding in the menu settings->editor in the general settings choose "Use encoding when opening files" UTF-8.
--- End quote ---
That will not work, because C::B first creates the file and than runs encoding-detection on it.
The file is an ascii-file and in the moment C::B uses the system-default for ascii-files, but I think the user-chosen encoding make more sense here, because it should be possible to open pure ascii files with almost any encoding.
Fixed in svn r5737
mariocup:
Hi Jens,
I am working under windows and the system default is CP1252. I have configured in the CB editor UTF-8 for opening files and if I create a File->New->Class and save the files then the status bar shows UTF-8 encoding for these files too.
MortenMacFly:
--- Quote from: jens on August 23, 2009, 01:09:35 pm ---Fixed in svn r5737
--- End quote ---
...including the removal of the System Locale as fallback?! IIRC we has re-implemented this because for many users this was the only working solution. Stay tuned that we'll receive the same complaints again, now. What's wrong with trying the system locale? I mean: It's a wx function that usually works just fine...?!
Navigation
[0] Message Index
[#] Next page
Go to full version