Home > Article > Backend Development > Can't input Chinese characters in php cli?
My system: debian8+php
Under dbeian8, you can use lxdterminal to input and display Chinese characters, that is, you can input and display Chinese characters in bash
Chinese characters can also be input and displayed in the python shell
Chinese characters can be displayed in php cli (or php shell, or interactive mode), but Chinese characters cannot be input.
php -a
Interactive mode enabled
php > echo pack("H12","E4B8ADE69687");
Chinese
can display Chinese characters.
Unable to enter Chinese characters.
I click the enter key or select 1, but Chinese characters cannot be input into it.
Excuse me, how to solve it?
My system: debian8+php
Under dbeian8, you can use lxdterminal to input and display Chinese characters, that is, you can input and display Chinese characters in bash
Chinese characters can also be input and displayed in the python shell
Chinese characters can be displayed in php cli (or php shell, or interactive mode), but Chinese characters cannot be input.
php -a
Interactive mode enabled
php > echo pack("H12","E4B8ADE69687");
Chinese
can display Chinese characters.
Unable to enter Chinese characters.
I click the enter key or select 1, but Chinese characters cannot be input into it.
Excuse me, how to solve it?