Bloqueada FtpWebRequest - 550 error

Bloqueada

  • lunedì 4 agosto 2008 12:20
     
     
    Hello,

    i want to create a simple FTP Client.One of the requierements is that FTP Client should support special charcaters (like french characters)
    in the files names.I have searched alot on the web for a solution but i havent found one.I think it is releated to URI encoding but i don't have any ideea about how should i encode requested URI so that special charcaters should be supported.

    Any quick help would be appreciated.

    Thank you

    Ionut

Tutte le risposte

  • martedì 5 agosto 2008 05:35
     
     
    You can try using the System.Web.HttpUtility.EncodeUrl method to encode whichever part of the path needs encoding.
  • mercoledì 6 agosto 2008 15:22
    Moderatore
     
     Con risposta
     No need to encode it beforehand. The System.Uri callss already supports international characters.


    Uri uri = new Uri("your string containing international characters);
    FtpWebRequest fwr = (FtpWebRequest) WebRequest.Create(uri);


    Thanks
    Mariya
  • lunedì 11 agosto 2008 19:44
    Moderatore
     
     
    Does this answer your questions? If so, please mark the thread as answered

    Thanks
    Mariya