showkey
showkey

Reputation: 348

why there is no utf-8 encoding in firefox?

Why there is no utf-8 encoding in firefox?
Maybe it is wrong for firefox to write encoding unicode in the encoding line,should utf-8 or unicode encoding be displayed in the encdoing line?
What is the reason?

enter image description here

Upvotes: 3

Views: 12237

Answers (2)

bobince
bobince

Reputation: 536339

This option is UTF-8, yes. It used to say “Unicode (UTF-8)” which was clearer.

It seems when the encoding menu was tidied (bug 805374 I think) the encoding labels were made ‘friendlier’ by replacing the technical encoding name with a more general description, or removing it when it's the only selectable option.

It makes sense that other UTF encodings are not included: as non-ASCII-compatible encodings they can't easily be mistaken and switched between; UTF-8 is the only Unicode-family encoding that fits here. But the result of calling UTF-8 just “Unicode” is unfortunate in that Microsoft have always (misleadingly) used the term “Unicode” to mean UTF-16LE.

Upvotes: 11

Rahul Tripathi
Rahul Tripathi

Reputation: 172378

The reasoning(as per my understanding) not to add it as utf-8 might be because it allows the user to set the utf encoding as per your need like utf-16 or utf-8 etc.

Firefox uses Unicode and to use it it uses charset=utf-8

You need to understand that Firefox will use the encoding specified in a meta tag if the server does not send encoding via the HTTP response headers.

Its specified like this:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

Upvotes: 0

Related Questions