webHttp request returns double escaped NewLine
Thomas Steiner
1
Reputation point
I have a WCF-service which returns a string containing NewLines. The service is deployed to azure.
The returned string looks good if I use wsHttp-binding. The NewLine is correctly escaped as '\r\n' and displays with proper line breaks.
If I use the same service via webHttp-binding with WebRequest, the returned string contains double-escaped like '\r\n'.
I checked numerous variants of <globalisation> in <system.web> and also in the webHttp-behaviour and its defaultOutgoingResponseFormat.
The same scenario works fine when I deploy it to a onPrem VM.
Thomas Steiner
Sign in to answer