473,320 Members | 1,955 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Carriage return replaced

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
Nov 23 '05 #1
4 1784


Replaced in what or where?
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"Lance Johnson" <lj******@docs.com> wrote in message news:uZ**************@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
Nov 23 '05 #2
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]" <sm*****@PLEASEDONTSPAMMEmsn.com> wrote in message news:Ow**************@TK2MSFTNGP10.phx.gbl...
Replaced in what or where?
------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"Lance Johnson" <lj******@docs.com> wrote in message news:uZ**************@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
Nov 23 '05 #3
Try replacing \r with \\r . Sorry if this isn't of much help.
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"Lance Johnson" <lj******@docs.com> wrote in message news:OQ**************@TK2MSFTNGP10.phx.gbl...
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]" <sm*****@PLEASEDONTSPAMMEmsn.com> wrote in message news:Ow**************@TK2MSFTNGP10.phx.gbl...
Replaced in what or where?
----------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"Lance Johnson" <lj******@docs.com> wrote in message news:uZ**************@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
Nov 23 '05 #4
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-20...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
"Lance Johnson" <lj******@docs.com> wrote in message
news:uZ**************@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

Nov 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Canes_Rock | last post by:
The information posted at: ...
4
by: Dr. Laurence Leff | last post by:
I am writing a Java program to read in XML file, modify some elements slightly, and then write it out. That XML file is prepared in Docbook. It works fine, except that it is disturbing the...
4
by: Josh | last post by:
Hi, I'm using System.Data.DataSet.ReadXml to convert some xml from a webservice to a DataSet. The xml looks like: <?xml version="1.0"...
1
by: wschaub | last post by:
Is there any way of forcing an ASMX web service not to translate a carriage return – line feed (\r\n) with a (\n\n), in other words the carriage return \r is replaced with a \n if contained as...
4
by: JingleBEV | last post by:
Hi all, this is simple, but I don't remember how to seperate the a lengthy string into 2 or more lines. I did this long time ago, if I have the code like this can someone correct it please ...
2
by: Andrew Chanter | last post by:
I have a VBA function that returns a string including "vbcr" (VB Carriage Return) to seperate a list into multiple rows, eg Item1 & vbcr & Item2 & vbcr & Item3 This works as planned in the...
3
by: David N. | last post by:
Hi All, I spent too much time on trying to get the CrLf into a string, which contains embedded SQL statements that can be executed by the SQLClient.SqlCommand. Note that these SQL statements...
2
by: Winshent | last post by:
I have a multi line text in an admin page on my cms. I am trying to capture carriage returns as and replace them with <p></p> bfore the string gets written to the database. I have tried all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.