Converting Korean characters into entities
===

I'm trying to convert Korean characters into unicode/html entities but not having any luck. I use this site: http://www.mylanguages.org/converter.php but want to have something like that in php coding.

    $text ='한예진';
    echo htmlentities($text);

Example: `한예진` into `&#54620;&#50696;&#51652;`