ascii
Function
The ascii command sets the file transfer mode to ASCII on an FTP client.
The default file transfer mode is ASCII.
Usage Guidelines
Files can be transferred in ASCII or binary modes.
The ASCII mode is used to transfer plain text files, and the binary mode is used to transfer application files such as system software (files with name extension .cc, .bin, and .pat.), images, video files, compressed files, and database files.
Example
# Set the file transfer mode to ASCII.
<Huawei> ftp 10.137.217.201 Trying 10.137.217.201 ... Press CTRL+K to abort Connected to 10.137.217.201. 220 FTP service ready. User(10.137.217.201:(none)):huawei 331 Password required for huawei. Enter password: 230 User logged in.
[Huawei-ftp] ascii 200 Type set to A.