开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜