Re: PHP 8 shell: can't input non-Ascii chars

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



my charset in php cli ini is set to 

default_charset = "UTF-8"

пн, 8 нояб. 2021 г. в 18:12, Ashley Sheridan <ash@xxxxxxxxxxxxxxxxxxxx>:


On 08/11/2021 05:43, Денис Романенко wrote:

After upgrading to PHP 8 in my WSL 2 I was stuck with a strange problem: I can't input any non-ASCII characters in shell, nor in interactive shell and PsySH.

In simple words: if I try to input in shell "Привет" - russian letters just not get in terminal.

I tried Russian, Serbian, Chinese and some unicode symbols. Can't input from keyboard or paste from clipboard.

I have this behavior in Ubuntu 21.10, 20.04 (bare metal) and 20.04 (WSL2). In Mac OS - everything is fine. I use php from "ondrej/php".

Does anyone encounter this problem or have a workaround for it?


*****

Best Regards, Denis

The shell shouldn't be affected by upgrading PHP. Were any Windows updates (or others related to upgrading the PHP version) also done at the same time?
-- 
Ashley Sheridan
https://www.ashleysheridan.co.uk

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux