If you receive a simple string (not in DataSet or Array or as a
member of any other object) as a return of a WebMethod and that string
contains an Enviroment.NewLine ("\r\n") the \r character somehow gets
lost.
I tested only with a a simple WebService with a use of a proxy
generated with VS.NET 2003. I guess it must be some kind of a SAOP or
XML feature. Anyone care to explain?
My problem is solved with a simple replace:
string sResult = wsSampleWebSerice();
sResult = sResult.Replace("\n", Environment.NewLine);
[Update: my code HTML formatter replace "\n" with "\\n". Fixed now.]