.mht文件显示为文本(html垃圾) [英] .mht file is displayed as text (html garbage)

查看:311
本文介绍了.mht文件显示为文本(html垃圾)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是论坛的新手,并真心希望有一位大师帮助我..


问题:


我有一个excel文件有三个工作表,并保存为webarchive文件(.mht)文件。这个文件在IE8上正确显示,但是当我安装IE9时,它显示为html垃圾。如果我在本地保存文件然后通过文件/打开打开它,那么
它会正确显示。只有通过网络服务器访问同一文件时才会出现此问题。


感谢有人遇到类似问题并有解决方案可以试用..


非常感谢...


环境:Windows 7 64位,Office 2010 32位,IE9(所有补丁安装到2013年9月)

解决方案


仅在通过网络服务器访问同一文件时发生。


这表明Content-type:仅指示文本,而不是HTML。 使用开发人员工具,网络捕获进行检查。 如果文件扩展名存在且暗示您要查看的内容,则可以尝试禁用MIME嗅探选项(在
安全性,其他部分中)。



Hi, am new to the forum and sincerely hoping a guru will help me..

Issue :

I have an excel file which has three worksheets and it is saved as webarchive file (.mht) file. This file displays correctly on IE8, but the moment I install IE9 it shows up as html garbage. If I save the file locally and then open it via File/Open, then it displays correctly. The issue happens only when accessing the same file via  webserver.

Appreciate if someone has encountered similar issues and has a solution to try..

Thanks a ton...

Environment : Windows 7 64 bit, Office 2010 32 bit, IE9 (All patches installed until Sep'13)

解决方案

happens only when accessing the same file via  webserver.

Which suggests the Content-type: is going to indicate text only, not HTML.  Use the Developer Tools, Network Capture to check.  If the file extension is present and implies what you want to see you could try the Disable MIME Sniffing option (in Security, Miscellaneous section).


这篇关于.mht文件显示为文本(html垃圾)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆