Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Unwanted question marks after ASCII encoding of SPFILE

  Asked By: J    Date: Feb 06    Category: Sharepoint    Views: 1070

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?

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Unwanted question marks after ASCII encoding of SPFILE Or get search suggestion and latest updates.




Tagged: