StringBuilder request = new StringBuilder();
request.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
byte[] msg;
string decoded;
msg=System.Text.Encoding.UTF8.GetBytes(request.ToString());
decoded = System.Text.Encoding.UTF8.GetString(msg);
decoded is <?xml version=\"1.0\" encoding=\"UTF-8\"?>
the result has \"
My question is how can I encode the message with quotes and still get string without \"
after decdoing
If I use AppendLine that the result also has \r\n