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

  • Thread starter Thread starter Valli
  • Start date Start date
V

Valli

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?
 
Valli said:
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?
 
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
 
Valli said:
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.
 
Back
Top