php - Korean character break on wamp2.2 with oracle -
i using wamp 2.2 oracle. loading xsl content oracle table , loading on textarea
in php page , allowing user edit , save this.
the problem is:
if xsl contains korean character, php doesn't show data.
at other environments shows data when save data, stores special characters question marks loosing korean characters.
i have checked utf-8 , al32utf8 poor in applying techniques.
could me on this?
this code using
$db_charset = 'al32utf8'; $db = "(description = (address_list = (address = (protocol = tcp)"; $db .= "(host = ".$ini_array["db_host"].")(port = ".$ini_array["db_port"].")) )"; $db .= "(connect_data = (sid = ".$ini_array["db_sid"].") ) )"; $ds_conn = ocilogon("eres", "eres123", $db, $db_charset); $query="some sql query; $results = executeociquery($query,$ds_conn); $status = sendmail("random confirm letter",$html,$results["email_to"][$row],$ini_array); function sendmail($mail_subject,$mail_body, $mail_to,$ini_array){ $mail = new phpmailer(); $mail->issmtp(); $mail->ishtml(true); $mail->host = $ini_array["smtp_host"]; if ($ini_array["smtp_auth"] == "yes") { $mail->smtpauth = true; $mail->username = $ini_array["smtp_user"]; $mail->password = $ini_array["smtp_pwd"]; } $mail->from = $ini_array["mail_from"]; $mail->fromname = $ini_array["mail_fromname"]; $mail->addaddress($ini_array["mail_admin_email"],$ini_array["mail_admin_name"]); $mail->addaddress($mail_to,$mail_to); $mail->subject = $mail_subject; $mail->body = $mail_body; $mail->charset = $db_charset;
}
this script sends email broken korean characters. target computer has nls character set "al32utf8".
Comments
Post a Comment