Extended ASCII Characters problem for sockets

  • Thread starter Thread starter Bülent Üstün
  • Start date Start date
B

Bülent Üstün

Hi,
im trying to upload somefiles using sockets to a FTP site.
But i've some problems with extended ascii characters.
When i try "MKD bülent" the created folder is "blent".
The directory name is kept in a string.
What should i convert its encoding to?

If you have any idea to solve this, please reply.
Thanks

P.s.: When i try to create the folder with any FTP program its created
right. So i'm sure its possible.
 
Bülent Üstün said:
im trying to upload somefiles using sockets to a FTP site.
But i've some problems with extended ascii characters.

What *exactly* do you mean by "extended ASCII" here? There is no one
character set which is "extended ASCII".
When i try "MKD bülent" the created folder is "blent".
The directory name is kept in a string.
What should i convert its encoding to?

That depends on what the FTP server is expecting, I'm afraid. Consult
the FTP RFC to see if it has any information on the subject.

You could try using Encoding.Default, but really you need to know what
the server is expecting.

See http://www.pobox.com/~skeet/csharp/unicode.html for more
information.
 
Back
Top