How to handle special characters like  when Serialize/Deserialize xml object?
问题 I have some biz objects to store the customer names, sometimes the name contains some special characters like  ,  . These names are imported from 3rd party, and I cannot delete the funny chars from the source. The application will serialize/deserialize the customer object by XmlSerializer, but the strange thing here is when I serialize the name with special chars, there are no errors, and the result will be like this <Name>Jim <Name> . But when I deserialize the output xml, I will