Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜尋 Mozilla 技術支援網站

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

Learn More

Firefox having problems with UTF-16le (Windows default unicode set)

  • 1 回覆
  • 5 有這個問題
  • 1 次檢視
  • 最近回覆由 cor-el

more options

I have a website where I have many different languages (English, German, Russian, Old Russian, Polish, French, Italian, Spanish, etc.) and so it is pretty necessary to use a unicode set to accommodate this. For quite awhile, Windows default Unicode set is UTF-16le, so that is what I use, and every page within this site has that coded in the header for browsers to recognise. This site had been tested with Firefox, IE, Opera, Safari, Kylo, and even Netscape, and there was no problem. Within the last couple months, however, Firefox has released updates which have garbled my site, and even when I manually set the encoding to UTF-16le, my links to amazon are rendered completely unusable, and if I navigate away from the page and then click back to a page using the back button, Firefox once again renders it as garbage.

I have a website where I have many different languages (English, German, Russian, Old Russian, Polish, French, Italian, Spanish, etc.) and so it is pretty necessary to use a unicode set to accommodate this. For quite awhile, Windows default Unicode set is UTF-16le, so that is what I use, and every page within this site has that coded in the header for browsers to recognise. This site had been tested with Firefox, IE, Opera, Safari, Kylo, and even Netscape, and there was no problem. Within the last couple months, however, Firefox has released updates which have garbled my site, and even when I manually set the encoding to UTF-16le, my links to amazon are rendered completely unusable, and if I navigate away from the page and then click back to a page using the back button, Firefox once again renders it as garbage.

所有回覆 (1)

more options

The server sends the page as UTF-8. You will have to change that to UTF-16 to avoid such problems. Firefox will ignore a BOM in the file if the server specifies an encoding in the HTTP response headers.