Click here to Skip to main content
15,900,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

With a small client program to send data to a server that listen on 8001 port I'm trying. But I send data on a server chinese characters appear in the information received and only then going on a server problem does not appear when tested on other servers, all data goes smoothly. Server's client program is going full data gone. Can I be in a place I doing wrong.

Note: Listener server is korean made.

my code:

Dim Baglanti As New TcpClient
Dim Data As NetworkStream


Baglanti.Connect(IPBox.Text, PortBox.Text)
Data = Baglanti.GetStream()

Data send

Dim GidenVeri() As Byte = Encoding.UTF8.GetBytes(TextBox5.Text)
Data.Write(GidenVeri, 0, GidenVeri.Length)



listener output ( my problems)


1 solution

Ok my problem was solved. I solved the problem as follows:

I changed this line and worked successfully.

Dim GidenVeri() As Byte = Encoding.Unicode.GetBytes(Textbox5.text)

Thanks to everyone.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900