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

Support for Office 2003 has ended

Microsoft ended support for Office 2003 on April 8, 2014. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

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.
This problem occurs if the ContentType header in the XML file includes the charset parameter.
To resolve this problem, remove the charset parameter from your XML file.
The following code does not open the XML file in Microsoft Office Word 2003:
<%Response.ContentType = "text/xml; charset=utf-8"%><?xml version="1.0" encoding="UTF-8" ?> <?mso-application progid="Word.Document"?> <w:wordDocument xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml">  <w:body>	<w:p>	  <w:r>		<w:t>My test document.</w:t>	  </w:r>	</w:p>  </w:body></w:wordDocument>
The following code does open the XML file in Word 2003:
<%Response.ContentType = "text/xml%><?xml version="1.0" encoding="UTF-8" ?><?mso-application progid="Word.Document"?><w:wordDocument xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml">  <w:body>	<w:p>	  <w:r>		<w:t>My test document.</w:t>	  </w:r>	</w:p>  </w:body></w:wordDocument>

Article ID: 888579 - Last Review: 09/22/2011 14:26:00 - Revision: 3.0

Microsoft Office InfoPath 2007, Microsoft Office Excel 2007, Microsoft Office Word 2007, Microsoft Office InfoPath 2003

  • kbopenfile kbxml kbtshoot kbprb KB888579