Want to take your pages to visit a bug farm in IE and Edge?
Put a bunch of stuff above your document's character set declaration:
Alternatively, want to avoid a visit to the bug farm? Put a charset=utf-8 attribute on your Content-Type response header, and put <meta charset=utf-8> as the FIRST line of your <HEAD>.
(When IE/Edge encounter the character set declaration, they must restart the parser from the beginning, interpreting with the declared character set. Beyond hurting perf, this restart process tends to expose bugs.)