There are php5 users. Can you input Chinese characters in
php5-a
? in linux.
There are php5 users. Can you input Chinese characters in
php5-a
? in linux.
php -a’s two interactive modes
The default is Interactive mode enabled, enter the code block<?php echo time()."n"; ?>
, press Enter and press Ctrl+D to execute.
PHP adds --with-readline
when configure, and supports Interactive shell under CLI.
At this time, enter the PHP code and press Enter to execute it. In addition, it supports pressing the Tab key to complete variable and function names, etc.
My php5 has been compiled using this parameter, but I still cannot input Chinese characters. Could you please give me the compilation process of php5?
Whether you can input Chinese characters or not has nothing to do with PHP, because PHP does not handle encoding, whatever is input is what it is. This should have something to do with the terminal/command line tool you are running php with.