note 124273 added to function.sapi-windows-cp-get

From: Date: Tue, 08 Oct 2019 09:56:52 +0000
Subject: note 124273 added to function.sapi-windows-cp-get
Groups: php.notes 
Request: Send a blank email to php-notes+get-212550@lists.php.net to get a copy of this message
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. ---- Server IP: 208.43.231.9 Probable Submitter: 185.85.3.168 (proxied: 80.242.181.162) ---- Manual Page -- http://php.net/manual/en/function.sapi-windows-cp-get.php Edit -- https://master.php.net/note/edit/124273 Del: integrated -- https://master.php.net/note/delete/124273/integrated Del: useless -- https://master.php.net/note/delete/124273/useless Del: bad code -- https://master.php.net/note/delete/124273/bad+code Del: spam -- https://master.php.net/note/delete/124273/spam Del: non-english -- https://master.php.net/note/delete/124273/non-english Del: in docs -- https://master.php.net/note/delete/124273/in+docs Del: other reasons-- https://master.php.net/note/delete/124273 Reject -- https://master.php.net/note/reject/124273 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#212550) next »