1
0
mirror of https://bitbucket.org/anguist/ntpa synced 2025-10-05 18:41:13 +00:00

UTF8 support

This commit is contained in:
Carsten
2016-08-27 13:54:16 +02:00
parent aec054188a
commit 51799edf8a
6 changed files with 8 additions and 8 deletions

View File

@ -21,6 +21,6 @@
using System.Reflection;
[assembly: AssemblyVersion("0.7.1.0")]
[assembly: AssemblyVersion("0.7.2.0")]
[assembly: AssemblyCopyright("Copyright (c) 2013-2016 Carsten Sonne Larsen <cs@innolan.dk>")]
[assembly: AssemblyCulture("")]

View File

@ -42,7 +42,7 @@ namespace Ntp.Analyzer.Monitor.Client
clientSocket.Connect(Server);
byte[] sendBuffer = Encoding.ASCII.GetBytes(command);
byte[] sendBuffer = Encoding.UTF8.GetBytes(command);
SocketError error;
clientSocket.Send(sendBuffer, 0, sendBuffer.Length, SocketFlags.None, out error);

View File

@ -59,7 +59,7 @@ namespace Ntp.Analyzer.Monitor.Client
throw new ApplicationException("Failed to connect to server.");
}
byte[] sendBuffer = Encoding.ASCII.GetBytes(command);
byte[] sendBuffer = Encoding.UTF8.GetBytes(command);
SocketError error;
clientSocket.Send(sendBuffer, 0, sendBuffer.Length, SocketFlags.None, out error);