Chr(13) : LOST

Discussion in 'ASP .Net Web Services' started by Felix, Sep 2, 2005.

  1. Felix

    Felix Guest

    We have a problem with the Chr(13) and WebServices (we are using VB.NET
    2003).
    If we have a string that contains the Chr(13) and the Chr(10) (just the
    vbCrLf characters) and we pass it through a web service call, then the web
    service recieves the string without the Chr(13). It seems that the Web
    Service "eats" all Chr(13) out of all the characters of the string. It also
    happens when the WebService returns a string with this character. How can we
    solve that problem?

    TIA

    Felix Gardel
     
    Felix, Sep 2, 2005
    #1
    1. Advertising

  2. Hi Felix,

    Have you tried URL Encoding the newline character? You can try replacing it
    with a %0A and that should get passed right, although your problem does seem
    unusual at first glance.

    -Altaf


    --------------------------------------------------------------------------------
    All that glitters has a high refractive index.
    www.mendhak.com


    "Felix" <> wrote in message
    news:...
    > We have a problem with the Chr(13) and WebServices (we are using VB.NET
    > 2003).
    > If we have a string that contains the Chr(13) and the Chr(10) (just the
    > vbCrLf characters) and we pass it through a web service call, then the web
    > service recieves the string without the Chr(13). It seems that the Web
    > Service "eats" all Chr(13) out of all the characters of the string. It
    > also happens when the WebService returns a string with this character. How
    > can we solve that problem?
    >
    > TIA
    >
    > Felix Gardel
    >
     
    S.M. Altaf [MVP], Oct 5, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. crjunk
    Replies:
    2
    Views:
    16,848
    crjunk
    Aug 8, 2003
  2. Andi Twine
    Replies:
    3
    Views:
    552
    Natty Gur
    Jan 13, 2004
  3. =?Utf-8?B?RGFuIE5hc2g=?=

    C# equiv of Chr(13)

    =?Utf-8?B?RGFuIE5hc2g=?=, Nov 1, 2004, in forum: ASP .Net
    Replies:
    12
    Views:
    74,346
    Dudeman3000
    Feb 22, 2010
  4. ProJee
    Replies:
    3
    Views:
    444
    ProJee
    Nov 17, 2004
  5. MattB
    Replies:
    3
    Views:
    555
    =?Utf-8?B?Q293Ym95IChHcmVnb3J5IEEuIEJlYW1lcikgLSBN
    Nov 19, 2004
Loading...

Share This Page