function QuestionHelper::resetIOCodepage
Sets console I/O to the specified code page and converts the user input.
1 call to QuestionHelper::resetIOCodepage()
- QuestionHelper::readInput in vendor/
symfony/ console/ Helper/ QuestionHelper.php - Reads one or more lines of input and returns what is read.
File
-
vendor/
symfony/ console/ Helper/ QuestionHelper.php, line 543
Class
- QuestionHelper
- The QuestionHelper class provides helpers to interact with the user.
Namespace
Symfony\Component\Console\HelperCode
private function resetIOCodepage(int $cp, string|false $input) : string|false {
if (0 !== $cp) {
sapi_windows_cp_set($cp);
if (false !== $input && '' !== $input) {
$input = sapi_windows_cp_conv(sapi_windows_cp_get('oem'), $cp, $input);
}
}
return $input;
}