UTF-8 BOM & Codelite

General questions regarding the usage of CodeLite
coder99
CodeLite Expert
Posts: 167
Joined: Wed Oct 22, 2008 6:50 am
Contact:

UTF-8 BOM & Codelite

Post by coder99 »

I realize this problem could be classified as either a wxFormbuilder or g++ issue, but since wxFormbuilder sort-of forms a part of Codelite, I thought I'd try this forum. According to the comments on their forum, are undecided on whether, how or when to deal with the issue and I have not been able to find a satisfactory solution by googling the gcc forums either.
So I'm really trying to see if anyone else here has a solution.

After importing another project which had its basic frame build by wxFormBuilder using the UTF8 encoding, the compiler seems to choke on the BOM mark inserted in the .cpp file(s).
Under MSVC I had to set a property to have the compiler handle this issue, but I have not been able to find a suitable option to keep g++ happy.

Up to now, I have simply removed the offending bytes, but they keep getting reinserted anytime I have to regenerate the code

TIA

Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2

coder99
CodeLite Expert
Posts: 167
Joined: Wed Oct 22, 2008 6:50 am
Contact:

Re: UTF-8 BOM & Codelite

Post by coder99 »

Sorry to say, the problem withBOM & wxFormbuilder was mine; I had forgotten that I can disable the BOM from wxFormBuilder and just where to look for it.

Win 10/11 64-bit, MSVC 2019/2022, wxWidgets 3.2.1, CodeLite 17.0 Mint 21.2

Post Reply