Special symbols problem

G

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.
 
M

Martin Kulov

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top