Set UTF-8 console for Windows

This commit is contained in:
Michael Hansen
2023-09-09 17:10:42 -05:00
parent 137fa67db9
commit def047af9d

View File

@@ -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;