I am exporting image via svg. Below is my c#
code.
string chartTitle = "ABC 50 µG";
XmlDocument xd = new XmlDocument();
xd.XmlResolver = null;
string chartSvg = "<svg><text x=\"1\" y=\"15\" font-size=\"14\" font-weight='bold' font-family=\"Arial\" ><tspan x=\"458\" dy=\"10\"> " + chartTitle + "</tspan></text></svg>"
xd.LoadXml(chartSvg);
svgGraph = Svg.SvgDocument.Open(xd);
I am getting error Invalid character in the given encoding. Line 1, position 110.
at last line above due to µ
symbol in my chartTitle
.
Please help, how can i tackle this