开发者

\r is removed when I return a string from web service to client (C#)

开发者 https://www.devze.com 2023-03-30 14:06 出处:网络
I am calling a web method (C#) which accepts a string and returns a string. The string returned by web method has got \\r\\n, but at the client the string 开发者_开发问答has got only \\n. seems like \

I am calling a web method (C#) which accepts a string and returns a string. The string returned by web method has got \r\n, but at the client the string 开发者_开发问答has got only \n. seems like \r was removed while transferring data from service to client. Can any one please tell what might be causing this?


Line breaks in Javascript are represented by the single new line character "\n", not the combination of new line and carriage return.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号