ftp传文件遇到不能传中文的解决方法

xiaoxiao2021-02-28  75

windows的ftp服务器,是用gbk来处理的,linux的是utf-8,原来只需要在访问ftp前设置一下系统编码就OK了

String(makedir.toString().getBytes("GBK"), "iso-8859-1")

转载请注明原文地址: https://www.6miu.com/read-84678.html

最新回复(0)