Special symbols problem

Discussion in 'ASP .Net Web Services' started by Guest, Jan 11, 2006.

  1. Guest

    Guest Guest

    I'm trying to return string like "\u0001" from web method, but client gets
    exception

    System.InvalidOperationException: There is an error in XML document (1,
    978). --
    -> System.Xml.XmlException: '', hexadecimal value 0x01, is an invalid
    character
    .. Line 1, position 1001.

    What's wrong??
    Thank you.
     
    Guest, Jan 11, 2006
    #1
    1. Advertising

  2. Guest

    Martin Kulov Guest

    <> wrote in message
    news:...
    > I'm trying to return string like "\u0001" from web method, but client
    > gets exception
    >
    > System.InvalidOperationException: There is an error in XML document (1,
    > 978). --
    > -> System.Xml.XmlException: '', hexadecimal value 0x01, is an invalid
    > character
    > . Line 1, position 1001.
    >


    Why do not you base64 encode the string contain special characters and all
    will be fine.

    Regards,

    --
    Martin Kulov
    http://www.codeattest.com/blogs/martin

    MCAD Charter Member
    MCSD.NET Early Achiever
    MCSD
     
    Martin Kulov, Jan 11, 2006
    #2
    1. Advertising

  3. Guest

    Guest Guest

    Thank you very much.


    "Martin Kulov" <> wrote in message
    news:...
    > <> wrote in message
    > news:...
    >> I'm trying to return string like "\u0001" from web method, but client
    >> gets exception
    >>
    >> System.InvalidOperationException: There is an error in XML document (1,
    >> 978). --
    >> -> System.Xml.XmlException: '', hexadecimal value 0x01, is an invalid
    >> character
    >> . Line 1, position 1001.
    >>

    >
    > Why do not you base64 encode the string contain special characters and all
    > will be fine.
    >
    > Regards,
    >
    > --
    > Martin Kulov
    > http://www.codeattest.com/blogs/martin
    >
    > MCAD Charter Member
    > MCSD.NET Early Achiever
    > MCSD
    >
    >
     
    Guest, Jan 12, 2006
    #3
    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. Gibs

    Displaying Special Symbols

    Gibs, Jun 29, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    468
    Ken Cox [Microsoft MVP]
    Jun 29, 2004
  2. wylbur via DotNetMonster.com

    Problem with symbols in DbgCLR

    wylbur via DotNetMonster.com, Mar 6, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    663
    =?Utf-8?B?RFdT?=
    Mar 6, 2006
  3. wASP

    Problem with symbols in DbgCLR

    wASP, Mar 8, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    317
  4. Replies:
    0
    Views:
    319
  5. Bart Nessux

    Print Special Symbols in Tk GUI

    Bart Nessux, Aug 13, 2004, in forum: Python
    Replies:
    2
    Views:
    355
    Bart Nessux
    Aug 13, 2004
Loading...

Share This Page