I have the code as follows:
string DocUrl = "http://localhost/NDA/Amendment/A0001.xml";
SPWeb NdaWeb = "";
SPFile NdaFile = NdaWeb.GetFile(DocUrl);
Byte[] data = NdaFile.OpenBinary();
String AmendmentXml = string.Empty;
System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
AmendmentXml = enc.GetString(data);
After running the above code, the string "AmendmentXml" contains the
question manrks "?" for the text where more than one space exists.
It also inserts three question marks('???') in the begining of the file.
How to avoid these unwanted question marks?
Do you know someone who can help? Share a link to this thread on twitter, or facebook.