467,907 Members | 1,401 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,907 developers. It's quick & easy.

Extended ASCII Characters problem for sockets

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 "blent".
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.
Nov 16 '05 #1
  • viewed: 1764
Share:
1 Reply
Bülent Üstün <bu****@isikun.edu.tr> wrote:
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 "blent".
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by bgbauer70 | last post: by
17 posts views Thread by Gregor Kovač | last post: by
4 posts views Thread by =?Utf-8?B?Um9zaGFuIFIuRA==?= | last post: by
13 posts views Thread by ramif | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.