This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Probably goes for other encodings too, but this is the one that came up in the tests I was writing for DOM. The spec says "utf-8" is the proper encoding name, but .characterSet seems to return "UTF-8" in Gecko and WebKit, and "unicode" in IE. So "UTF-8" matches browsers better.
It has been suggested that per http://dump.testsuite.org/encoding/label-test.html IE9 and IE10 return utf-8. IE8 just gives undefined.
I'm okay with going with IE/Opera, given that it turns out they agree.
https://bugzilla.mozilla.org/show_bug.cgi?id=799917 has additional discussion. Likely this will be WONTFIX.
Unless Gecko declares their experiment as failed, this is WONTFIX.
*** Bug 23650 has been marked as a duplicate of this bug. ***