(Posted on behalf of the OP).
Your PHP page should be rendered as UTF-8 character set to view the Korean (in my case) character for that mb_string
variables has to be set as UTF-8 as follows.
mb_internal_encoding('UTF-8');
mb_http_output('UTF-8');
mb_http_input('UTF-8');
mb_language('uni');
mb_regex_encoding('UTF-8');
ob_start('mb_output_handler');
and then there should be a environment variable has to be placed as follows:
PutEnv("NLS_LANG=AMERICAN_AMERICA.AL32UTF8");
Finally convert the string to UTF-8 with mb_convert_encoding
:
mb_convert_encoding($str, "UTF-8", "EUC-KR");
We are done.