搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

My 1st tab opens in Unicode but the 2nd tab opens in Western - WHY? Need both in Unicode.

  • 7 回覆
  • 2 有這個問題
  • 29 次檢視
  • 最近回覆由 ccfred

more options

My home page consists of two tabs; the 1st is Google.com & the 2nd is webmail.juno.com. When I open in IE8, both tabs have Unicode (UTF-8) encoding. When I open in Firefox, the 1st has Unicode (UTF-8) encoding BUT the 2nd tab ALWAYS has Western encoding WHY? I must always manually go to View/Text Encoding and change it every time. IE8 does this automatically - How can this be fixed in Firefox so both tabs always open in Unicode?

My home page consists of two tabs; the 1st is Google.com & the 2nd is webmail.juno.com. When I open in IE8, both tabs have Unicode (UTF-8) encoding. When I open in Firefox, the 1st has Unicode (UTF-8) encoding BUT the 2nd tab ALWAYS has Western encoding WHY? I must always manually go to View/Text Encoding and change it every time. IE8 does this automatically - How can this be fixed in Firefox so both tabs always open in Unicode?

被選擇的解決方法

The following extension (which I haven't tried because I haven't noticed any need for it) was updated more recently, so it might be more compatible with changes in Firefox 40-41 regarding extension features:

Charset Switcher https://addons.mozilla.org/firefox/addon/charset-switcher/

Support thread: http://forums.mozillazine.org/viewtopic.php?t=797805

從原來的回覆中察看解決方案 👍 1

所有回覆 (7)

more options

That is because the server sends this content type in the HTTP response headers: "text/html;charset=ISO-8859-1" See "Tools > Page Info > General" You can verify that in the Network Monitor (look for http://my.juno.com).

The page source shows a meta tag for Unicode, but Firefox only use the meta tag if the server doesn't send a content-type and ignores the meta tag otherwise

<meta charset="utf-8" />
more options

Thanks for your reply - I think you are telling me that even though IE-8 takes that same server data but somehow manages to display with Unicode coding, Firefox is not able to do the same.

I still find it hard to believe that Firefox is not advanced enough to allow the user to specify a specific text coding and always use it! IE-8 knows how but Firefox does not .

more options

As I wrote above: The server sends the Unicode (utf-8) content type via a meta tag in the main HTML file, but Firefox always ignores the content type that is send this way if the server is configured to send a (different) content type like in this case. Other browsers may always use the meta tag when present or do some sniffing, but Firefox doesn't do this for security reasons.

See also: https://developer.mozilla.org/en-US/docs/How_Mozilla_determines_MIME_Types

由 cor-el 於 修改

more options

I understand your explanation, cor-el, that "Firefox always ignores the content type that is send this way" - - THAT IS EXACTLY THE PROBLEM! My issue is that FIREFOX SHOULD NOT ignore the content type - Internet Explorer does not ignore the content type and I submit that Firefox handles it improperly.

Obviously, Firefox does not care about this issue, so until they resolve it, I will continue to change Text Encoding each time I sign on.

more options
more options

選擇的解決方法

The following extension (which I haven't tried because I haven't noticed any need for it) was updated more recently, so it might be more compatible with changes in Firefox 40-41 regarding extension features:

Charset Switcher https://addons.mozilla.org/firefox/addon/charset-switcher/

Support thread: http://forums.mozillazine.org/viewtopic.php?t=797805

more options

I installed & tried "Content Preferences" - - It did not work.

After that, the most recent post arrived re: "Charset Switcher" I installed it and Hooray! IT WORKS and remembers the character set needed.

Thanks to jscher2000

由 ccfred 於 修改