August 05, 2016 Improper display of Cyrillic in `pragma (msg, ...)` on Windows | ||||
---|---|---|---|---|
| ||||
Hi, To view Cyrillic CMD on Windows can be used `std.process.executeShell("chcp 65001 ");` and it works. What should I use to change the encoding to UTF-8 to the compiler messages in `pragma(msg, ...)` on Visual D? ////////////////////////////////// import std.stdio, std.process; void main() { executeShell("chcp 65001"); writeln("Привет, мир!"); // Привет, мир! -> OK pragma(msg, "Привет, мир!"); // Привет, РјРёСЂ! -> wrong } ////////////////////////////////// PS C++ supports the following directive in Visual Studio: https://msdn.microsoft.com/en-us/library/mt708823.aspx |
Copyright © 1999-2021 by the D Language Foundation