Closed AnashOommen closed 10 years ago
The code should look like this in src/Common/Util/SerializationUtilities.cs
public static string SerializeAsXmlText(object objToSerialize) { string retval = ""; using (var writter = new Utf8StringWritter()) { new XmlSerializer(objToSerialize.GetType()).Serialize(writter, objToSerialize); retval = writter.ToString(); } return retval; } } class Utf8StringWritter : StringWriter { public override Encoding Encoding { get { return new UTF8Encoding(false); } } }
Fixed in Common version 2.4/3.1.
The code should look like this in src/Common/Util/SerializationUtilities.cs