Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / October 2005

Tip: Looking for answers? Try searching our database.

Carriage return replaced

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lance Johnson - 21 Oct 2005 03:10 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.