Click here to Skip to main content
15,917,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am facing an wiered error while uploading files to FTP server, The problem is only with files having file names in Russian,Chinese, Japanese, Portugese texts. On the other hand files with their file names in English text get uploaded successfully. I left no stone unturned to resolve this by pondering to different sources. I will be pleased, If anyone knows the root cause behind this and help me with solution.

Regards Anand
Posted
Updated 31-Dec-14 3:08am
v2
Comments
PeejayAdams 31-Dec-14 9:24am    
Does your FTP server support Unicode?

Try to switch to UTF-8 encoding by the FTP command:
OPTS UTF8 ON

You should also use the same encoding in your software, such as System.Net.FtpWebRequest:
http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest%28v=vs.110%29.aspx[^]
If, by some reason, it doesn't work, it means that the FTP server use use doesn't support it.

See also: http://en.wikipedia.org/wiki/List_of_FTP_commands[^].

—SA
 
Share this answer
 
Well, you left some stones unturned. Did you check the documentation on the FTP server to see if it supports Unicode filenames? This may be something you can configure on the FTP server.

BTW, this has nothing to do with C#.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900