I am unable to create XElement with the string which contains the unicode.
Below code is failing to create XElement. How can I create an XElement with the unicode.
XDocument xDoc = new XDocument(
new XElement("Pubs",
new XElement("Book",
new XElement("Title", "Social Service"),
new XElement("Author", "Nagsert")),
new XElement("Book",
new XElement("Title", "Self Motivation"),
new XElement("Author", "Srinu")
)
)
);
xDoc.Root.Add(new XElement("Book",
new XElement("Title", "Problem Is Still Exist"),
new XElement("Author", "Gazit, Inbar")
));e>
What I have tried:
I have gone thorough the unicode problems in c#.
I found that the unicode details for special character
Unicode character Oct Dec Hex HTML
Results 1 - 4 of 4
\x{15} nak negative acknowledge ctrl-u 025 21 0x15
᷂ combining snake below 016702 7618 0x1DC2 ᷂
⺒ cjk radical snake 027222 11922 0x2E92 ⺒
𐂔 linear b monogram b128 kanako 0200224 65684 0x10094 𐂔