X
點擊此處開啟此網站的行動版。

技術支援討論區

Force firefox to use unicode

已張貼

I've had a problem on a particular page on my website that has resisted all attempts at analysis and fixing for years: the page renders in Western font in my FF browser (in all my PCs), whilst in a colleague's browser (from another country) it renders fine in Unicode. It also renders fine in Unicode on my PC when using Chrome, and Edge, and Opera. Only Firefox is a problem.

I would be happy if I could just tell FF to render every single page I ever visit in Unicode by default. But I have go to View > Text Encoding > Unicode every single time I visit this page.

For info, I'll paste everything in the page before the <body> tag:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>xxx</title> <base href="https://www.xxx.com/templates/en/admin/Gross_Profit_Reports.html"></base> <link rel="stylesheet" href="css/reset.css?revision=1794" type="text/css" /> <link rel="stylesheet" href="css/text.css?revision=1794" type="text/css" /> <link rel="stylesheet" href="css/style.css?revision=1794" type="text/css" /> <link rel="shortcut icon" href="https://www.xxx.com/templates/en/images/favicon.gif" /> <script src="../js/jquery-1.9.1.min.js" type="text/javascript"></script> <script src="../js/jquery.stickytableheaders.min.js"type="text/javascript" charset="utf-8"></script> <script src="../js/sspextras.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript" src="../js/common.js"></script> <meta charset="utf-8"></head>


Although we use <meta charset="utf-8"> now, we've previously had it as <meta http-equiv="Content-Type" content="text/html; charset=utf-8">, but that has been similarly unsuccessful.

I'm happy to make changes on the browser side in the webpage, but I really want to solve this. Grateful for any help.

I've had a problem on a particular page on my website that has resisted all attempts at analysis and fixing for years: the page renders in Western font in my FF browser (in all my PCs), whilst in a colleague's browser (from another country) it renders fine in Unicode. It also renders fine in Unicode on my PC when using Chrome, and Edge, and Opera. Only Firefox is a problem. I would be happy if I could just tell FF to render every single page I ever visit in Unicode by default. But I have go to View > Text Encoding > Unicode every single time I visit this page. For info, I'll paste everything in the page before the <body> tag: ---- <nowiki><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>xxx</title> <base href="https://www.xxx.com/templates/en/admin/Gross_Profit_Reports.html"></base> <link rel="stylesheet" href="css/reset.css?revision=1794" type="text/css" /> <link rel="stylesheet" href="css/text.css?revision=1794" type="text/css" /> <link rel="stylesheet" href="css/style.css?revision=1794" type="text/css" /> <link rel="shortcut icon" href="https://www.xxx.com/templates/en/images/favicon.gif" /> <script src="../js/jquery-1.9.1.min.js" type="text/javascript"></script> <script src="../js/jquery.stickytableheaders.min.js"type="text/javascript" charset="utf-8"></script> <script src="../js/sspextras.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript" src="../js/common.js"></script> <meta charset="utf-8"></head> </nowiki> ---- Although we use <meta charset="utf-8"> now, we've previously had it as <meta http-equiv="Content-Type" content="text/html; charset=utf-8">, but that has been similarly unsuccessful. I'm happy to make changes on the browser side in the webpage, but I really want to solve this. Grateful for any help.

由 cor-el 於 修改

引用

額外的系統細節

已安裝的外掛程式

  • Shockwave Flash 32.0 r0

應用程式

  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0

更多資訊

提出問題者

Ho-hum... all the lines below 'For info' were neatly formatted when I posted the message, but now they're messedup. I'll try again.


For info, I'll paste everything in the page before the <body> tag:

--- <title>xxx</title> <base href="https://www.xxx.com/templates/en/admin/Gross_Profit_Reports.html"> <link href="css/reset.css?revision=1794" rel="stylesheet" type="text/css"> <link href="css/text.css?revision=1794" rel="stylesheet" type="text/css"> <link href="css/style.css?revision=1794" rel="stylesheet" type="text/css"> <link href="https://www.xxx.com/templates/en/images/favicon.gif" rel="shortcut icon"> <script src="../js/jquery-1.9.1.min.js" type="text/javascript"></script> <script charset="utf-8" src="../js/jquery.stickytableheaders.min.js" type="text/javascript"></script> <script charset="utf-8" src="../js/sspextras.js" type="text/javascript"></script> <script src="../js/common.js" type="text/javascript"></script> <meta charset="utf-8"> ---

Although we use <meta charset="utf-8"> now, we've previously had it as <meta content="text/html; charset=utf-8" http-equiv="Content-Type">, but that has been similarly unsuccessful. I'm happy to make changes on the browser side in the webpage, but I really want to solve this. Grateful for any help.

Ho-hum... all the lines below 'For info' were neatly formatted when I posted the message, but now they're messedup. I'll try again. -------------------------------------------- For info, I'll paste everything in the page before the <body> tag: --- <title>xxx</title> <base href="https://www.xxx.com/templates/en/admin/Gross_Profit_Reports.html"> <link href="css/reset.css?revision=1794" rel="stylesheet" type="text/css"> <link href="css/text.css?revision=1794" rel="stylesheet" type="text/css"> <link href="css/style.css?revision=1794" rel="stylesheet" type="text/css"> <link href="https://www.xxx.com/templates/en/images/favicon.gif" rel="shortcut icon"> <script src="../js/jquery-1.9.1.min.js" type="text/javascript"></script> <script charset="utf-8" src="../js/jquery.stickytableheaders.min.js" type="text/javascript"></script> <script charset="utf-8" src="../js/sspextras.js" type="text/javascript"></script> <script src="../js/common.js" type="text/javascript"></script> <meta charset="utf-8"> --- Although we use <meta charset="utf-8"> now, we've previously had it as <meta content="text/html; charset=utf-8" http-equiv="Content-Type">, but that has been similarly unsuccessful. I'm happy to make changes on the browser side in the webpage, but I really want to solve this. Grateful for any help.
這篇文章有幫助嗎?
引用
cor-el
  • Top 10 Contributor
  • Moderator
17479 個解決方法 157955 個答案

What matters to Firefox is what content type the server send for this file. If the server is configured to send and 8 bit Western or Windows code then Firefox will use this encoding. Firefox only uses the encoding in a meta tag if the server doesn't send an encoding. Best is to ensure that the server send content type Unicode.

What matters to Firefox is what content type the server send for this file. If the server is configured to send and 8 bit Western or Windows code then Firefox will use this encoding. Firefox only uses the encoding in a meta tag if the server doesn't send an encoding. Best is to ensure that the server send content type Unicode. *https://www.w3.org/International/articles/http-charset/index
這篇文章有幫助嗎?
引用
問個問題

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題