Firefox – How to set the default encoding to Unicode

encodingfirefoxiceweaselunicode

How do I set the default encoding in Firefox/Iceweasel to Unicode (instead of Western)?

I'm particularly interested in the default encoding for *.txt files. Firefox/Iceweasel seems to always choose Western as the encoding for such files. I know that I can change the encoding for a particular page through View > Character Encoding, but it gets tiresome after a while.

Best Answer

In about:config, set intl.charset.fallback.utf8_for_file to true.

However, this only works for local files (file:/// URLs).

(shamelessly copied from this answer)