1

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 한예진

hieimora
  • 313
  • 1
  • 4
  • 13
  • I'm not sure what you're trying to do. What's wrong with `htmlentities`? – Mike Jul 11 '12 at 22:35
  • It isn't converting into `한예진`. – hieimora Jul 11 '12 at 22:35
  • 1
    possible duplicate of [How do I convert arabic letters in htmlentities symbols?](http://stackoverflow.com/questions/7408572/how-do-i-convert-arabic-letters-in-htmlentities-symbols) – Pekka Jul 11 '12 at 22:37

1 Answers1

2
mb_convert_encoding($text, "HTML-ENTITIES", "UTF-8"); 
lafor
  • 12,472
  • 4
  • 32
  • 35