Issues with (escaping) encoding & sign in the XML

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ketakijoshi
    New Member
    • Mar 2008
    • 1

    #1

    Issues with (escaping) encoding & sign in the XML

    Hi,

    I am pretty new to C# .Net. Working on a piece of code where I have converted Chinese characters into hex equivalents. But when I insert it in the XML, the "&" sign is converted into the "&" which spoils the Chinese character reconversion.

    I am using C# .Net, VS 2005.

    This is what I don't want to have happen -
    <content xsi:type="xsd:s tring">&amp;#x4f60;&amp;#x597d;</content>

    Any inputs will be valuable!

    Thanks,
    K
Working...