I have strings in different languages, such as Korean, encoded in UTF-8 (the strings).
I am trying to convert them into something like &#number; or ä etc. whenever possible, but using this in PHP:
$str = htmlspecialchars($str, ENT_QUOTES);
doesn't do that.
What is the right way to do that?