The problem of garbled characters in win7 DOS UTF-8 is also frequently encountered in the past when using command lines. It seems that I have never thought of correct it. I have seen this article on the ninth street specially added to my favorites. When executing a PHP file in dos, the output file text is UTF-8 encoded, so garbled characters are displayed,
Reset the DOS encoding. Run the following command: chcp 65001, right-click the command line title bar, and choose "attribute"> "font ", change the font to True Type Font Lucida Console, and then click OK to apply the property to the current window, the following screen appears: www.2cto.com determines that the MS-DOS provides character sets for the following countries and languages: code Page Description 1258 Vietnamese 1257 Boro 1256 Arabic 1255 Hebrew 1254 Turkish 1253 Greek 1252 Latin 1 character (ANSI) 1251 Spanish 1250 Chinese EU 950 traditional Chinese 949 Korean 936 Simplified Chinese (default) 932 Japanese 874 Thai 850 multilingual (MS-DOS Latin1) 437 MS-DOS American English