我有一个 VB.NET 项目。
我正在尝试通过 TcpClient 连接到服务器。我想以希伯来语获取数据-但所有希伯来语都以符号形式返回...
我正在使用 UTF-8 编码,但它没有帮助......当我尝试更改为 Unicode 时 - 服务卡住了。
有任何想法吗?
编码:
client.Connect(Settings.ServerIP, Settings.ServerPort)
client.GetStream().BeginRead(receiveData, 0, receiveData.Length, AddressOf ReceiveDataCallback, client)
Dim bytesReceived As Int32 = (client.GetStream().EndRead(iar))
Dim NewData As String = Encoding.UTF8.GetString(receiveData, 0, bytesReceived)
谢谢!