'OPTS UTF8 ON': command not understood
作者:互联网
背景
go 操作 ftp , 使用 github.com/jlaffaye/ftp
这个库
问题复现
登录时报错,错误如题
解决方案
添加参数,禁用 utf8
ftp.Dial("ftp.example.com:21", ftp.DialWithTimeout(5*time.Second), ftp.DialWithDisabledUTF8(true))
原因
ftp Server 不支持 utf-8 编码, 泪目
标签:ftp,Dial,21,UTF8,understood,command,go,com,OPTS 来源: https://www.cnblogs.com/hanyanling/p/14823493.html