encodingStyle usage in XmlSerializer.Serialize
- by Vishal Seth
Can somebody please explain the use of 4th parameter of
public void Serialize(
XmlWriter xmlWriter,
Object o,
XmlSerializerNamespaces namespaces,
string encodingStyle
)
My issue is this:
I've following string in one of the fields of my object:
"reviewed ?" // music notation
When I serialize it, it becomes
& # x E; // see it as one word, w/o spaces it won't let me type
And it fails when I try to transform this .NET generated XML through another XSL file
Is it happening because its serializing using UTF-16? Is there any way I can make it transform using UTF-8 and make this "error" go away?
**