I'm trying to use Font Awesome icons in my UTF-16 html pages but the icons don't show up normally, because of the encoding. Walking step by step, this works fine:
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
<style>
.ololo::after {
content: "\f007";
font-family: 'Font Awesome\ 5 Free';
}
</style>
</head>
<body>
<h1><i class="fas fa-american-sign-language-interpreting"></i></h1>
<h1 class="ololo"></h1>
</body>
</html>
Both icons show up nice when <meta charset="UTF-8">
. But when I switch the page to <meta charset="UTF-16">
, the Font Awesome icons simply vanish leaving no trace of them on the screen. So the question is: how can I make Font Awesome icons show up correctly in a UTF-16 encoded html page?