User forums > Using Code::Blocks

Need some help with source encodings

<< < (2/2)

TDragon:
No, you're not wrong.

If you truly need for these source files to be compatible with editors that don't read and write a BOM, or compilers that can't cope, then the correct thing to do would be to avoid using non-standard characters in the source files, and use translation tools such as gettext to internationalize your program.

This is only really necessary for popular, internationalized projects which are designed to be portable between compilers, however, and I get the impression that yours is not. This is a good time to apply the YAGNI principle -- don't try to plan for every eventuality.

Cheers,
John E. / TDM

Grygoriy:
Thanks )

Navigation

[0] Message Index

[*] Previous page

Go to full version