Set UTF-8 console for Windows

windows
Michael Hansen 8 months ago
parent 137fa67db9
commit def047af9d

@ -95,6 +95,11 @@ int main(int argc, char *argv[]) {
RunConfig runConfig;
parseArgs(argc, argv, runConfig);
#ifdef _WIN32
// Required on Windows to show IPA symbols
SetConsoleOutputCP(CP_UTF8);
#endif
piper::PiperConfig piperConfig;
piper::Voice voice;

Loading…
Cancel
Save