如何使得从远程ftp下载的文件名不是乱码?
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 154
- 注册时间: 2006-08-12 22:00
如何使得从远程ftp下载的文件名不是乱码?
rt. I use NCFTP, and the remote server use gb2312 encoding.
- karron
- 帖子: 6226
- 注册时间: 2005-06-11 14:03
- 来自: 不明真相的群众
- 联系:
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
-
- 帖子: 2
- 注册时间: 2006-02-07 21:43
http://stone.sqhard.net
不是宣传自己,是我记录在那里了!这个解决方法也是看来的 !只是我后面坚持下来了!而有的人就放弃了 !
不是宣传自己,是我记录在那里了!这个解决方法也是看来的 !只是我后面坚持下来了!而有的人就放弃了 !
-
- 帖子: 154
- 注册时间: 2006-08-12 22:00
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
-
- 帖子: 154
- 注册时间: 2006-08-12 22:00
使用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:~$
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:~$
-
- 帖子: 154
- 注册时间: 2006-08-12 22:00
-
- 帖子: 723
- 注册时间: 2006-04-11 9:01
我是用lftp远程下载的,一般都是用set命令设置一下编码
代码: 全选
$ lftp
lftp: ~>set ftp:charset gbk
I would love to change the world, but they won't give me the source code.
http://hi.baidu.com/wienerlee
http://hi.baidu.com/wienerlee