Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml MS Exchange 2007 EWS CreateItem utf-8在主题或正文中包含德语umlaut时失败_Xml_Soap_Character Encoding_Exchangewebservices - Fatal编程技术网

Xml MS Exchange 2007 EWS CreateItem utf-8在主题或正文中包含德语umlaut时失败

Xml MS Exchange 2007 EWS CreateItem utf-8在主题或正文中包含德语umlaut时失败,xml,soap,character-encoding,exchangewebservices,Xml,Soap,Character Encoding,Exchangewebservices,向EWS发送此请求时(注意主题中的“ä”): 但是当我发送 ... <t:Subject>ITGeschaeft</t:Subject> ... 。。。 ITGeschaeft ... 如果成功,则正确创建了CalendarItem。 如何发送非ASCII字符 顺便说一句,另一种工作方式是,GetItem正确地传输这些特殊字符。 请求以utf-8正确编码。还尝试了Iso-Latin1,但出现编码错误。在Iso-8859-1中对请求和xml进行编码:

向EWS发送此请求时(注意主题中的“ä”):

但是当我发送

...
          <t:Subject>ITGeschaeft</t:Subject>
...
。。。
ITGeschaeft
...
如果成功,则正确创建了CalendarItem。 如何发送非ASCII字符

顺便说一句,另一种工作方式是,GetItem正确地传输这些特殊字符。
请求以utf-8正确编码。还尝试了Iso-Latin1,但出现编码错误。

在Iso-8859-1中对请求和xml进行编码:

Content-Type: text/xml; charset=ISO-8859-1


...
          <t:Subject>ITGeschaeft</t:Subject>
...
Content-Type: text/xml; charset=ISO-8859-1
<?xml version="1.0" encoding="ISO-8859-1"?>