Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why do my files appear correctly in Internet Explorer, but show up as source or trigger a save window with Netscape; or, Why doesn Internet Explorer render my text/plain document correctly?

0
Posted

Why do my files appear correctly in Internet Explorer, but show up as source or trigger a save window with Netscape; or, Why doesn Internet Explorer render my text/plain document correctly?

0

MS Internet Explorer (MSIE) and Netscape handle mime type detection in different ways, and therefore will display the document differently. In particular, IE sometimes relies on the file extension or the contents of the file to determine the mime type. This can happen when the server specifies a mime type of application/octet-stream or text/plain. This behavior violates the the HTTP standard and makes it impossible to deliver plain text documents to MSIE clients in some cases. More details are available on MSIE’s mime type detection behavior in an MSDN article and a note by Alan J. Flavell. The best you can do as a server administrator is to accurately configure the mime type of your documents by editing the mime.types file or using an AddType directive in the Apache configuration files. In some cases, you may be able to fool MSIE into rendering text/plain documents correctly by assuring they have a .txt filename extension, but this will not work if MSIE thinks the content looks like a

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.