Filename encoding in Apache Commons Net FTPClient

前端 未结 2 979
孤街浪徒
孤街浪徒 2021-02-13 14:31

I have to upload a file to an FTP server. The filename contains special letters, say äöü. On the FTP server, I need the filename to be UTF-8 encoded.

My cod

2条回答
  •  耶瑟儿~
    2021-02-13 15:19

    I have not tested it, but you can try this:

    client.setControlEncoding("UTF-8");
    

提交回复
热议问题