Posted by
Peter Caspers-4 on
URL: http://quantlib.414.s1.nabble.com/About-Code-Page-936-Warnings-and-Unicode-Encoding-tp16574p16585.html
Hi,
some experiments with Linux / emacs, gcc, clang and Windows / MSVC
work well with UTF-8 encoded sources containing special characters,
using recent versions of all tools.
Still I would prefer ASCII encoding and no special characters, neither
in comments nor in strings. The benefit is quite limited (well, that's
a matter of taste probably, and my name works well with the ASCII set
already, so who am I to judge ...). The potential for problems is
still existent though because who would know all the platforms, tools,
compilers and output devices and their versions with which QuantLib is
used.
What would be a real good reason for UTF-8 encoding ?
Peter
On 20 May 2015 at 02:45, Alexander Sokol <
[hidden email]> wrote:
> 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.
>
>
>
>
>
> --
> View this message in context:
http://quantlib.10058.n7.nabble.com/About-Code-Page-936-Warnings-and-Unicode-Encoding-tp16574p16580.html> Sent from the quantlib-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
>
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y> _______________________________________________
> QuantLib-users mailing list
>
[hidden email]
>
https://lists.sourceforge.net/lists/listinfo/quantlib-users------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users