note 124273 rejected from function.sapi-windows-cp-get by cmb

From: Date: Tue, 08 Oct 2019 10:16:20 +0000
Subject: note 124273 rejected from function.sapi-windows-cp-get by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-212551@lists.php.net to get a copy of this message
Note Submitter: spam dot jo dot welters at gmx dot net ---- Windows 10 Pro build 1903 cmdline and PHP 7.2.9 CLI. Here, sapi-windows-cp-get('oem') does not always give the current codepage. Instead, it apparently returns the "default codepage" for cmd.exe, i.e. the codepage that cmd generally starts with. In my case, this is codepage 850. When I change the codepage manually with "chcp 802" or "chcp 65001" on the commandline, this changes nothing for the php. Starting the script again and calling sapi-windows-cp-get('oem') still returns 850.

« previous php.notes (#212551) next »