Allow Console Output In UTF-8 (#378)
- Address issue where console output does not display UTF-8 string properly. - Resolves https://github.com/PowerShell/Win32-OpenSSH/issues/1225
This commit is contained in:
parent
afe4880c37
commit
959cbe3265
|
@ -65,5 +65,7 @@ snmprintf(char *buf, size_t len, int *written, const char *fmt, ...)
|
|||
void
|
||||
msetlocale(void)
|
||||
{
|
||||
// allow console output of unicode characters
|
||||
SetConsoleOutputCP(CP_UTF8);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue