Removing utf-8 identifier (BOM) from Response Sent by WCF
问题 I am creating a clone of the facebook Rest API in c#, I am testing it with the facebook PHP sdk. The problem I am having is that the responses sent by my net Rest Service contain utf-8 Bom in front of it and Facebook SDK is not able to parse the responses correctly. Any ideas on how to resolve this problem. 回答1: If you can specify a specific Encoding to your service, then you can use new UTF8Encoding(false) which is UTF-8 without BOM. 回答2: I don't know what you are returning in your service,