Is there a question about the different results of php strtolower in different operating modes?

$str = "cbqNK78 you play games";
after processing with strtolower,
Why can web mode be displayed normally while running on the command line, but "cbqnk78 you play games"
becomes garbled?

Why the results are different in different modes.

May.06,2021

I tested normally locally. Command line and web page may use different configuration files. You can take a look at the output of php-I | grep mbstring . Whether the PHP of the command line is loaded with the mbstring module.


strtolower the underlying layer is the called C language tolower method, which should be no different on CLI and WEB. The guess is caused by the inability of your console and browser to parse the characters .

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9c119-465ec.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9c119-465ec.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?