How should I use g++’s -finput-charset compiler option correctly in order to compile a non-UTF-8 source file?
Encoding Blues You cannot use UTF-16 for source code files; because the header you are including, <iostream>, is not UTF-16-encoded. As #include includes the files verbatim, this means that you suddenly have an UTF-16-encoded file with a large chunk (approximately 4k, apparently) of invalid data. There is almost no good reason to ever use UTF-16 … Read more