Re: About Code Page (936) Warnings, and Unicode Encoding.
Posted by Alexander Sokol on
URL: http://quantlib.414.s1.nabble.com/About-Code-Page-936-Warnings-and-Unicode-Encoding-tp16574p16580.html
Luigi, Hsiao-nan:
I believe the best option is UTF-8 (with or without the BOM). This is portable across most modern systems and is also the default in a lot of editors for new files, including C++ files in the Visual Studio. Most editors have the option to save as UTF-8.
Not only this will prevent the compilation errors, but it will also help people specify the properly spelled names in their native alphabet in the copyright page.
No need to convert all files globally, it can just be done for selected files that have non-ascii codes. Because UTF-8 overlaps with ASCII for the initial 127 characters including latin letters, older editors will work correctly for the most part.
Alexander Sokol
P.S. BOM is byte order mark, optional in UTF-8, older editors show it as a symbol in front. It is accepted by C++ compilers and not visible in modern editors.