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

Viewed 8657

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?

2 Answers

There is no browser-side setting for this. If there was, people authoring content would make content that looks right for them but would be broken for other readers.

If the HTML file is loaded from a file: URL and the content is UTF-8, Firefox autodetects it at the cost of breaking incremental rendering, but incremental rendering isn't important for file: URLs, since the content is assumed to be finite and available quickly.

For online content, the setting is whatever configuration makes your server send Content-Type: text/html; charset=UTF-8

Longer explanation

Related