Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set a default character-encoding to UTF-8 in Mozilla Firefox

How can I set the default Mozilla Firefox character-encoding to UTF-8, so if the HTML page lacks the meta tag to set charset, the character encoding is interpreted as UTF-8?

like image 801
Simone Bonelli Avatar asked Aug 13 '17 20:08

Simone Bonelli


1 Answers

In Firefox, open a new tab, go to about:config and press the confirm button.

Search for the key "intl.charset.fallback.utf8_for_file" and double-click to set its value to true.

This solution works with offline HTML files that don't contain the charset meta tag.

like image 95
trank Avatar answered Nov 15 '22 21:11

trank