Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9fb3443

Browse files
Restoring the ability to output unicode text to the Win10 console
Restoring the ability to output unicode text to the Win10 console after corrupting the console on line 224
1 parent 1f4a1bc commit 9fb3443

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Symfony/Component/Console/Terminal.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,10 @@ private static function readFromProcess(string|array $command): ?string
226226
fclose($pipes[2]);
227227
proc_close($process);
228228

229+
if (\function_exists('sapi_windows_cp_set')) {
230+
sapi_windows_cp_set(65001);
231+
}
232+
229233
return $info;
230234
}
231235
}

0 commit comments

Comments
 (0)