Unicode turns ANSI after FTP transfer

2019-06-02 09:03发布

问题:

I have a bunch of unicode (UTF-16LE) xml files that I want to transfer via an old OLD vb6 ftp component, but when I send them through there, they turn to ANSI on the ftp server side (win2k3 server).

When I attempt to send it using the windows terminal ftp client, it works fine whether I use binary or ascii transfer mode. The file stays unicode. What could be possible causes of this?

Edit: perhaps unrelated, but I notice sending files through an old email component also does this to unicode files.

回答1:

The answer was finalized here; Writing ANSI string to Unicode file over FTP