使用luit设置当前的编码环境
yulewang@yulewang-laptop:~$ luit -encoding gbk
Warning: couldn't find charset data for locale en_US.UTF-8; using ISO 8859-1.
运行ncftp
yulewang@yulewang-laptop:~$ ncftp
NcFTP 3.1.9 (Mar 24, 2005) by Mike Gleason (
http://www.NcFTP.com/contact/).
打开书签
ncftp> open myftp
Connecting to @@@.@@@.@@@.@@(ip我就不显示了)...
Serv-U FTP Server v6.0 for WinSock ready...
Logging in...
User logged in, proceed.
Logged in to 166.111.41.149.
显示我要下载的档,非常正常
ncftp / > cd class
Note:453.70 MB available
Directory changed to /class
ncftp /class > ls
通讯录及其他信息/
下载档
ncftp /class > get -R 通讯录及其他信息/
通讯录及其他信息/2006版建环5通讯录.xls: 19.50 kB 516.75 kB/s
通讯录及其他信息/本科生基本情况统计_建环5.doc: 1.86 MB 7.52 MB/s
ncftp /class > bye
显示本地档,第一行最左边的出来一些,最右边的是utf8编码的一个文件夹
yulewang@yulewang-laptop:~$ ls
通讯录????????息 gould mail phyexpr thermoexec1.aux 闊 ╅洩
date hello Marx physics thermoexec1.dvi
Desktop hydrodynamics meta pix thermoexec1.log
DSC00890.JPG image micro.txt social thermoexec1.tex
economics important music text time
experiment lshort.pdf pass thermodynamics wiki
退出luit重新显示文件
yulewang@yulewang-laptop:~$ exit
exit
yulewang@yulewang-laptop:~$ ls
ͨѶ¼????????Ϣ gould mail phyexpr thermoexec1.aux 韩雪
date hello Marx physics thermoexec1.dvi
Desktop hydrodynamics meta pix thermoexec1.log
DSC00890.JPG image micro.txt social thermoexec1.tex
economics important music text time
experiment lshort.pdf pass thermodynamics wiki
yulewang@yulewang-laptop:~$