htmlentities umlaut
I am trying to display this German character the proper way, if I don't use `htmlentities()` the output is **unabh�ngig**, but when I try to use `htmlentities()` the word is missing, why is that?

    <?php
    $str = htmlentities("unabhängig");
    ?>
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <title>Test</title>
    <meta charset='utf-8'>
    </head>
    <body>
    </body>
    <div><?php echo $str;?></div>
htmlentities umlaut
===

I am trying to display this German character the proper way, if I don't use `htmlentities()` the output is **unabh�ngig**, but when I try to use `htmlentities()` the word is missing, why is that?

    <?php
    $str = htmlentities("unabhängig");
    ?>
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <title>Test</title>
    <meta charset='utf-8'>
    </head>
    <body>
    </body>
    <div><?php echo $str;?></div>