My question is in the context of Code::Blocks and its tweaked version of MinGW, and Notepad++ .
I want to be able to include Unicode literals in my source, and I can, so long as I use UTF-8 and not use a BOM.
This works fine, up to a point, but it BOMs out (bad pun) whenever I reopen the file; it (not surprisingly) has this un-nerving side-effect of displaying the Unicode in its ANSI form. :(
Those very useful and yet very annoying three bytes have to be there, and then they have to go! (at compile time).
It sounds easy enough, just preprocess the source file(s), and discard the first three bytes (if they are a UTF-8 BOM)...
I'm certainly not going to be the processor (by manual removal) each time I compile, so I've even resorted to using BOM-less #inculde files for these literals, but this is problematic from several perspectives, not the least of which is that it is a pain in the proverbial, and I can't "see" them! ..without a lot of juggling.
Is there some way I can tap into the toolchain with a custom prepressor? ...or if I have missed some obvious solution, I'd very much appreciate hearing about it.
Thanks.