The files in the ftp service directory are garbled. Most of them are caused by inconsistent Chinese encoding. They are more common in third-party ftp service software, such as server-u. In addition, cross-platform access is also possible. This situation will occur, such as accessing the ftp server on Windows through Linux.
Solution:
1. For files in the ftp service directory, use English names instead of Chinese names.
Related video learning tutorial sharing: linux video tutorial
2. Set the encoding, taking server-u as an example:
(1) Open the Serv-U console, click "Restrictions and Settings" - "Configure advanced FTP command settings and behavior for the domain".
(2) Find the OPTS UTF8 command in the FTP settings, right-click to disable this command.
(3) Click "Global Properties" below.
(4) In the properties tab of the FTP command that comes out, in the "Advanced Options", remove the hook in front of "Use UFT-8 encoding for all paths and file names sent and received"!
Recommended related articles and tutorials: linux tutorial
The above is the detailed content of The files in the ftp service directory of the Linux system are garbled. For more information, please follow other related articles on the PHP Chinese website!