Microsoft KB Archive/888579

= XML files may open in Internet Explorer instead of opening in the expected Office program when the ContentType header contains the charset parameter =

Article ID: 888579

Article Last Modified on 4/20/2007

-

APPLIES TO


 * Microsoft Office InfoPath 2007
 * Microsoft Office Excel 2007
 * Microsoft Office Word 2007
 * Microsoft Office InfoPath 2003
 * Microsoft Office InfoPath 2003, Service Pack 1 (SP1)
 * Microsoft Office Excel 2003
 * Microsoft Office Word 2003

-





SYMPTOMS
If the ContentType header in your XML file contains the charset parameter, the XML file may open in Microsoft Internet Explorer instead of opening in the expected Microsoft Office program.



CAUSE
This problem occurs if the ContentType header in the XML file includes the charset parameter.



RESOLUTION
To resolve this problem, remove the charset parameter from your XML file.



MORE INFORMATION
The following code does not open the XML file in Microsoft Office Word 2003: <%Response.ContentType = &quot;text/xml; charset=utf-8&quot;%>  <?mso-application progid=&quot;Word.Document&quot;?>     My test document.     The following code does open the XML file in Word 2003: <%Response.ContentType = &quot;text/xml%> <?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?> <?mso-application progid=&quot;Word.Document&quot;?>     My test document.</w:t> </w:r> </w:p> </w:body> </w:wordDocument>

Keywords: kbopenfile kbxml kbtshoot kbprb KB888579

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.