i have invoke from cli and php script like that:
# php test.php
the php script content:
<?php
echo chr(201);
that's the square corner on the top left for CLI
but it shows É
character and expected:
(sorry for the image I do not find this character for the post).
I have try to use other method to get it working but nothing of it work:
<?php
echo mb_convert_encoding(chr(201), 'UTF-8', 'ISO-8859-1');
<?php
echo utf8_encode(chr(201));
The PHP file is UTF-8 without BOM.
terminal setting:
Update: Text Output:
<0x1b[1;0m
array [
'idprocess' => string(11): 'c-cron-0001',
'idform' => string(11): 'c-cron-0001',
]
<0x1b>[0m
<0x1b>[1;0m
array [
'idprocess' => string(11): 'c-cron-0004',
'idform' => string(11): 'c-cron-0004',
]
<0x1b>[0m
<0x1b>[1;0m
array [
'idprocess' => string(11): 'c-cron-0005',
'idform' => string(11): 'c-cron-0005',
]
<0x1b>[0m
<0x1b>[1;0m
array [
'idprocess' => string(11): 'c-cron-0006',
'idform' => string(11): 'c-cron-0006',
]
<0x1b>[0m
<0x1b>[1;0m
array [
'idprocess' => string(11): 'c-cron-0007',
'idform' => string(11): 'c-cron-0007',
]
<0x1b>[0m
Update: ouput from drawbox function:
╔══════════════════════════════════════════════════════════════════════════════╗
║ <0x1b>[1;0m ║
║ array [ ║
║ 'idprocess' => string(11): 'c-cron-0001', ║
║ 'idform' => string(11): 'c-cron-0001', ║
║ ] ║
║ <0x1b>[0m ║
║ <0x1b>[1;0m ║
║ array [ ║
║ 'idprocess' => string(11): 'c-cron-0004', ║
║ 'idform' => string(11): 'c-cron-0004', ║
║ ] ║
║ [0m ║
║ [1;0m ║
║ array [ ║
║ 'idprocess' => string(11): 'c-cron-0005', ║
║ 'idform' => string(11): 'c-cron-0005', ║
║ ] ║
║ <0x1b>[0m ║
║ <0x1b>[1;0m ║
║ array [ ║
║ 'idprocess' => string(11): 'c-cron-0006', ║
║ 'idform' => string(11): 'c-cron-0006', ║
║ ] ║
║ <0x1b>[0m ║
║ <0x1b>[1;0m ║
║ array [ ║
║ 'idprocess' => string(11): 'c-cron-0007', ║
║ 'idform' => string(11): 'c-cron-0007', ║
║ ] ║
║ <0x1b>[0m ║
║ ║
╚══════════════════════════════════════════════════════════════════════════════╝