I've seen some different posts about people having problems with \r\n being
replaced with \n. I haven't seen any resolution, so what are my
alternatives to not having this replaced?
Lance Johnson
S.M. Altaf [MVP] - 21 Oct 2005 21:47 GMT
Replaced in what or where?
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
I've seen some different posts about people having problems with \r\n being
replaced with \n. I haven't seen any resolution, so what are my
alternatives to not having this replaced?
Lance Johnson
Lance Johnson - 21 Oct 2005 22:27 GMT
Sorry about that. But if you have a string that gets sent to a web service, the \r\n will get replaced with a \n. I've debugged through this. Just before being sent to the web service it has the \r\n. And once I step into it and the debugger breaks in the web service, we now only have a \n.
Lance Johnson
Replaced in what or where?
------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"Lance Johnson" <ljohnson@docs.com> wrote in message news:uZZ$sSe1FHA.3924@TK2MSFTNGP14.phx.gbl...
I've seen some different posts about people having problems with \r\n being
replaced with \n. I haven't seen any resolution, so what are my
alternatives to not having this replaced?
Lance Johnson
S.M. Altaf [MVP] - 23 Oct 2005 21:51 GMT
Try replacing \r with \\r . Sorry if this isn't of much help.
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
Sorry about that. But if you have a string that gets sent to a web service, the \r\n will get replaced with a \n. I've debugged through this. Just before being sent to the web service it has the \r\n. And once I step into it and the debugger breaks in the web service, we now only have a \n.
Lance Johnson
"S.M. Altaf [MVP]" <smaltaf@PLEASEDONTSPAMMEmsn.com> wrote in message news:OwaErCo1FHA.1060@TK2MSFTNGP10.phx.gbl...
Replaced in what or where?
----------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"Lance Johnson" <ljohnson@docs.com> wrote in message news:uZZ$sSe1FHA.3924@TK2MSFTNGP14.phx.gbl...
I've seen some different posts about people having problems with \r\n being
replaced with \n. I haven't seen any resolution, so what are my
alternatives to not having this replaced?
Lance Johnson
Andrej Tozon - 25 Oct 2005 10:26 GMT
Hi Lance,
both \r and \n are treated as a white space and therefore get normalized
in the process. You can read more about it in the W3C Recommendation:
http://www.w3.org/TR/2004/REC-xml-20040204/#sec-common-syn.
There are many ways to handle that in your application, but which one you
choose depends on what you need to do with that data.
Andrej
> I've seen some different posts about people having problems with \r\n
> being replaced with \n. I haven't seen any resolution, so what are my
> alternatives to not having this replaced?
>
> Lance Johnson