C# WCF服务无法从移动客户端解码UTF-8

C# WCF服务无法从移动客户端解码UTF-8,c#,wcf,utf-8,C#,Wcf,Utf 8,我有一个WCF服务,它需要支持UTF-8编码查询。接口定义的示例如下所示: [OperationContract] [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, UriTemplate = "GetLocationID")] List<GetLocati

我有一个WCF服务,它需要支持UTF-8编码查询。接口定义的示例如下所示:

  [OperationContract]
    [WebInvoke(Method = "POST",
        ResponseFormat = WebMessageFormat.Json,
        BodyStyle = WebMessageBodyStyle.Wrapped,
        UriTemplate = "GetLocationID")]
    List<GetLocationIdResult> GetLocationID(Stream locationIDparams);
端点定义使用webHttpBinding,如下所示:

<services>
  <service behaviorConfiguration="External" name="Customer.Customer">
    <endpoint address="" behaviorConfiguration="webBehavior" binding="webHttpBinding" contract="Customer.ICustomer"/>
    <endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex"/>
  </service>
</services>
当我从基于.NET的web客户端或Fiddler发送带有希伯来语单词的查询时,查询参数读取正确。从Android或iOS移动客户端发送的参数未正确解码,但显示为问号


很容易说客户配置错误,但我需要解决问题,而不是推卸责任。我的配置中是否有可以解决问题的方法?我没有客户机可以寻址的调试服务器,查询必须转到客户的服务器,在那里我可以通过向事件管理器写入任何人都记得printf?进行调试?。使用这些工具来帮助纠正客户端的配置,我可以寻找什么呢?

我建议激活WCF跟踪和消息日志,如下所述: