I am taking a clob data of XSL from oracle 11g and trying to show the content in textarea of a php page using the following code
$recordSet = $db->Execute($v_sql);
$v_xsl = $recordSet->fields[0];
$doc = new domDocument;
$doc->preserveWhiteSpace = false;
$doc->encoding = 'utf-8';
$doc->loadXML($v_xsl);
$doc->formatOutput = true;
$v_xsl = $doc->saveXML();
<td><textarea name="xsl" rows=30 cols=100><?PHP echo htmlentities($v_xsl); ?></textarea></td>
this content gets loaded when there is no Korean characters where as if the content has korean characters it doesnt load the content in textarea.
the page header has charset as 'UTF-8'