[CM] Share the snippets for setting the code page to UTF-8 on Windows
Da Shen
da at liii.pro
Thu Jan 2 07:45:01 PST 2025
Here are the snippets:
#ifdef _MSC_VER
#include <windows.h>
SetConsoleOutputCP(65001); // Set console output code page to UTF-8
#endif
Currently, the console output code page has not been set to UTF-8 for S7 on Windows.
If you want to make the following code display as expected in the windows console:
(display "中文")
You will have to SetConsoleOutputCP in your S7 based application.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/pipermail/cmdist/attachments/20250102/4a45289e/attachment.html>
More information about the Cmdist
mailing list