pending \0 in string?
I am using the following code to read a string. The content of message is ends with a lot of \0 characters. Why and how to remove them?
(context is an instance of HttpListenerContext, and my code is read Http request from begin to end)
using (StreamReader requestStream = new StreamReader(context.Request.InputStream))
message = requestStream.ReadToEnd();
thanks in advance,
Sounds vaguely familiar, how did you manage it last time ? Maybe it's the same problem.