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.
_______________________________________________ Cmdist mailing list [email protected] https://cm-mail.stanford.edu/mailman/listinfo/cmdist
