Closed comanche closed 7 months ago
Cannot print Unicode characters properly on the CLI.
Create this test.php file:
test.php
echo "\u{1000}";
Download micro.sfx from php-8.3.4-micro-win.zip
micro.sfx
Extract the micro.sfx from the php-8.3.4-micro-win.zip to the same directory as test.php.
php-8.3.4-micro-win.zip
Create the test.exe
test.exe
copy /b micro.sfx + test.php test.exe
Run test.exe.
The following should have been printed on the CLI.
က
Running php test.php prints the above correctly.
php test.php
Actual result:
က
or in HEX:
E1 80 80
Php 8.3.4 with Micro
Looks like I can use the following:
exec('CHCP 65001'); echo "\u{1000}";
描述 (Description)
Cannot print Unicode characters properly on the CLI.
Create this
test.php
file:Download
micro.sfx
from php-8.3.4-micro-win.zipExtract the
micro.sfx
from thephp-8.3.4-micro-win.zip
to the same directory astest.php
.Create the
test.exe
Run
test.exe
.期望 (Expectation)
The following should have been printed on the CLI.
Running
php test.php
prints the above correctly.结果 (Result)
Actual result:
or in HEX:
软件版本 (Software version)
Php 8.3.4 with Micro