1. Check the currently used language
echo $LANG
2. Check the language packs installed on the system
3. Set the character set encoding of the terminal
4. Keep the above three encodings the same
Recommended tutorial: linux tutorial
The above is the detailed content of linux command garbled code. For more information, please follow other related articles on the PHP Chinese website!