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 / February 2005

Tip: Looking for answers? Try searching our database.

WSE2 \r\n in string

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrew - 20 Feb 2005 18:33 GMT
I am using WSE2.0 to pass some strings from a client to a webservice (both
written in c#). I notice that something is changing the CR \ LF's in my
strings!

\n   is ok
\r   converted to \n
\r\n converted to \n
\n\r converted to \n\n

Why?

Are there any other characters that get secretly converted? This is my first
attempt at using web services and I am shocked that something is messing with
the contents of my string.

Any solutions?

Andrew
erymuzuan - 21 Feb 2005 10:53 GMT
Try to use Environment.NewLine . for better result

regards
erymuzuan mustapa

> I am using WSE2.0 to pass some strings from a client to a webservice (both
> written in c#). I notice that something is changing the CR \ LF's in my
[quoted text clipped - 14 lines]
>
> Andrew
Andrew - 21 Feb 2005 15:31 GMT
The trouble is I have some legacy data files that I am attempting to send to
a web service. The file contains the \r and \n and \r\n character sequences.
If I pass a string (or any object) I expect it to arrive un-altered at the
web service! I should not have to work around this stuff. What other
characters are converted? I could not find anything in the documentation
about the \r conversion!

Andrew

> Try to use Environment.NewLine . for better result
>
[quoted text clipped - 19 lines]
> >
> > Andrew

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.