469,282 Members | 1,905 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Want to send ascii data over the tcp socket in VB.NET.

Hi,

I want to send ascii data over the tcp socket in VB.NET.
When the data reaches the destination, the special characters in the
messages are recived as '?'. I meant the special characters which are not
keyborad characters.
Example chr(250), chr(254).

Is there any way to send these kind of special characters through sockets?
Is any examples available?

--
Regards
Valli
May 31 '07 #1
3 3775
Valli <er*****@chellasoft.comwrote:
I want to send ascii data over the tcp socket in VB.NET.
When the data reaches the destination, the special characters in the
messages are recived as '?'. I meant the special characters which are not
keyborad characters.
Example chr(250), chr(254).

Is there any way to send these kind of special characters through sockets?
Is any examples available?
The first thing to know is that they're *not* ASCII characters. ASCII
only goes up to 127.

Now, we'll need to know a bit more information:

1) Do you actually have data as text that you want to send, or do you
just want to send the byte 250, then the byte 254?
2) What's on the other end of the socket?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
May 31 '07 #2
I want to send a text data which are delimited using the characters 250 &
254.
eg, AAAA■3223■˙■
Ths source process is written on VB.NET & the destination process is written
on VB6.

Regards
Valli

--
Regards
Valli
"Jon Skeet [C# MVP]" <sk***@pobox.comwrote in message
news:MP*********************@msnews.microsoft.com. ..
Valli <er*****@chellasoft.comwrote:
>I want to send ascii data over the tcp socket in VB.NET.
When the data reaches the destination, the special characters in the
messages are recived as '?'. I meant the special characters which are
not
keyborad characters.
Example chr(250), chr(254).

Is there any way to send these kind of special characters through
sockets?
Is any examples available?

The first thing to know is that they're *not* ASCII characters. ASCII
only goes up to 127.

Now, we'll need to know a bit more information:

1) Do you actually have data as text that you want to send, or do you
just want to send the byte 250, then the byte 254?
2) What's on the other end of the socket?

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too

May 31 '07 #3
Valli <er*****@chellasoft.comwrote:
I want to send a text data which are delimited using the characters 250 &
254.
What do you mean by "characters 250 and 254"? Without referring to a
character encoding, there's no such concept.
eg, AAAA■3223■˙■
Ths source process is written on VB.NET & the destination process is written
on VB6.
Sounds like you need to find out exactly which encoding is being used
by VB6, and use the same one in your code.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
May 31 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Kitchen Bin | last post: by
6 posts views Thread by Jaret Brower | last post: by
1 post views Thread by Hasan O | last post: by
11 posts views Thread by hazz | last post: by
2 posts views Thread by Alakhim Mohamad | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.