The solution to cmd php garbled code: first run cmd; then enter CHCP and press Enter to view the current encoding; then enter CHCP 65001 and press Enter; finally set the font to "Lucida Console".
Recommended: "PHP Tutorial"
1. Run cmd;
2. Enter CHCP and press Enter to view the current encoding;
3. Enter CHCP 65001 and press Enter;
4. Right-click on the cmd window and select Properties to set the font to Lucida Console, click OK
The above is the detailed content of How to solve cmd php garbled problem. For more information, please follow other related articles on the PHP Chinese website!