|
|
中文文件名__UTF编码__不能正确显示的问题
FTP server上有中文文件名,UTF8编码,用lftp,在utf8编码的终端下登陆ftp服务器,没有任何问题,显示,传输都正常,从mozilla/firefox登陆,选择正确编码也正常,可是好多人使用ftp客户端不能正确显示,请问如何处理?
前提:不可以更改文件名编码:
$ mv $file `echo $file | iconv -f utf8 -t gb2312`
请问能从发FTP server的设置解决吗?我查找了vsftpd 1.2.1的源码,没有任何如下特征: $ grep -i -r xxx *
xxx=iconv, utf, locale, encod
As for lftp, set in ~/.lftp/rc:
set ftp:charset "gbk" # the character set used by ftp server in requests, replies and file list-ings. Default is empty which means the same as local. This setting is only used when the server does not support UTF8.
#local character set. It is set from current locale initially. set file:charset "UTF-8"
|
|