Hint utf8 output on windows console.
@@ -38,13 +38,14 @@ int main(int argc, char **argv) {
JanetArray *args;
JanetTable *env;
- /* Enable color console on windows 10 console. */
+ /* Enable color console on windows 10 console and utf8 output. */
#ifdef _WIN32
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
DWORD dwMode = 0;
GetConsoleMode(hOut, &dwMode);
dwMode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING;
SetConsoleMode(hOut, dwMode);
+ SetConsoleOutputCP(65001);
#endif
/* Set up VM */
