Home > Backend Development > PHP Tutorial > Can php5 input Chinese characters in php5 -a?

Can php5 input Chinese characters in php5 -a?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-08-25 10:37:21
Original
1317 people have browsed it

There are php5 users. Can you input Chinese characters in
php5-a
? in linux.

Reply content:

There are php5 users. Can you input Chinese characters in
php5-a
? in linux.

Can php5 input Chinese characters in php5 -a?
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.

Related labels:
php
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template