diff --git a/CTZLauncher/Authentication/CTZAuthenticator.cs b/CTZLauncher/Authentication/CTZAuthenticator.cs index 831e86c..c93c7e0 100644 --- a/CTZLauncher/Authentication/CTZAuthenticator.cs +++ b/CTZLauncher/Authentication/CTZAuthenticator.cs @@ -68,7 +68,8 @@ namespace KMCCC.Authentication public string getServerList() { - return http.Send(HttpMethod.GET, Address + ":" + Port + "/serverlist"); + string sl = http.Send(HttpMethod.GET, Address + ":" + Port + "/serverlist"); + return sl.Replace("\0",""); } public bool getResult(string url) diff --git a/CTZLauncher/HttpHelper.cs b/CTZLauncher/HttpHelper.cs index b91bc06..8ab0c22 100644 --- a/CTZLauncher/HttpHelper.cs +++ b/CTZLauncher/HttpHelper.cs @@ -206,7 +206,7 @@ namespace CityCraft private string ParseResponse(byte[] responseBytes) { - string responseStr = Encoding.UTF8.GetString(responseBytes); + string responseStr = Encoding.Default.GetString(responseBytes); int splitindex = responseStr.IndexOf("\r\n\r\n"); if (splitindex > 0) { diff --git a/CTZLauncher/MainWindow.xaml b/CTZLauncher/MainWindow.xaml index a524838..7360dc3 100644 --- a/CTZLauncher/MainWindow.xaml +++ b/CTZLauncher/MainWindow.xaml @@ -57,7 +57,7 @@