Writing ANSI string to Unicode file over FTP
问题 I have the following Visual Basic 6.0 function which writes an ANSI string to a new file over FTP. I would like it to write the file as UTF-16LE. Is there any good way to do that within this following method? Public Sub writeToFile(ByVal FTPServer As String _ , ByVal userName As String _ , ByVal password As String _ , ByVal contents As String _ , ByVal destinationFile As String) Dim hFile As Long Dim lCount As Long inetOpen inetConnect FTPServer, userName, password hFile = apiFtpOpenFile(m