为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Firefox can not open .HTML files

  • 5 个回答
  • 8 人有此问题
  • 1 次查看
  • 最后回复者为 blue_bird

more options

I am using the Firefox 14.0.1 . I can't not open any kind of .HTML file(written in notepad) in Firefox when in others browsers I can open these normally. When I am trying to open my HTML file to test them in Firefox, they couldn't be open rather than I am getting some unsorted of scripts like chines or something like this (I don't know clearly which kind of language) I don't understand what do? In advance thanks for your helping.

I am using the Firefox 14.0.1 . I can't not open any kind of .HTML file(written in notepad) in Firefox when in others browsers I can open these normally. When I am trying to open my HTML file to test them in Firefox, they couldn't be open rather than I am getting some unsorted of scripts like chines or something like this (I don't know clearly which kind of language) I don't understand what do? In advance thanks for your helping.

被采纳的解决方案

A couple questions about your HTML file.

First, are you using any unusual fonts? "Outline" or "vector" fonts usually give the most reliable results across browsers. These include Arial, Times New Roman, and Courier New.

Second, do you get different results if you use File > Save As (in Notepad) and change the Encoding to ANSI or UTF-8? I believe those are the ones most commonly used for web pages. The Encoding drop-down is just to the left of the Save button.

定位到答案原位置 👍 1

所有回复 (5)

more options

Here is a Screenshot of my problem.

由blue_bird于修改

more options

It is possible that you saved the file in an UTF-16 encoding instead of UTF-8.

You can try to test that if you aren't sure.

  • Firefox > Web Developer > Character Encoding
  • View > Character Encoding
more options

选择的解决方案

A couple questions about your HTML file.

First, are you using any unusual fonts? "Outline" or "vector" fonts usually give the most reliable results across browsers. These include Arial, Times New Roman, and Courier New.

Second, do you get different results if you use File > Save As (in Notepad) and change the Encoding to ANSI or UTF-8? I believe those are the ones most commonly used for web pages. The Encoding drop-down is just to the left of the Save button.

more options

@cor-el, Thanks for your helpful tips!

由blue_bird于修改

more options

@jscher2000, really your tips solved my problem. I did not change the Encoding ANSI or UTF-8. Thanks a lot!