Trying to incorporate Font Awesome icons in UTF-16 encoded HTML pages can be a bit tricky. Following these steps should help you achieve the desired results:
<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>
When using <meta charset="UTF-8">
, both icons display correctly. However, switching to <meta charset="UTF-16">
causes the Font Awesome icons to disappear completely from the screen. So the question remains: how do we ensure that Font Awesome icons appear as intended in a UTF-16 encoded HTML page?