If you use available and standard FTP client, the required command to set the binary mode is
binary
:
http://www.cs.colostate.edu/helpdocs/ftp.html[
^].
If you do FTP client-side operations using .NET, most likely you use
System.Net.FtpWebRequest
, then you need to use the property
System.Net.FtpWebRequest.UseBinary
:
http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.usebinary.aspx[
^].
In practice, I would advise to use binary mode in all cases.
Also, are you sure it's not UTF-8 already? If could be, say, UTF-8 without BOM, it could use some other UTF in first place, etc. You can try to read the text using different encodings and write using the encoding you need and with BOM.
Please see:
http://en.wikipedia.org/wiki/Byte_order_mark[
^],
http://unicode.org/faq/utf_bom.html[
^].
One quick way of checking up the encoding is using some Web browser. Browsers usually have something like View -< Character Encoding options which would allow you to try them, with a plain text file or HTML.
—SA