03-17-2014, 05:52 AM
Dear CyberPunk,
I happy when get IEM 6.1.2 from you, but i got a problem with UTF-8 when i edit my campain.
I was check SendStudio_Functions.php file, and replace:
$htmlContent = htmlentities($htmlContent, ENT_QUOTES);
by
$htmlContent = htmlentities($htmlContent, ENT_QUOTES, SENDSTUDIO_CHARSET);
But it can't work for me.
And i find other difference from 6.1.2 and 6.1.4 in IEM.class.php:
In 6.1.4 has:
while (!$characterset_defined) {
if (is_null($db) || $db === false || !defined('SENDSTUDIO_DATABASE_TYPE')) {
break;
}
if (SENDSTUDIO_DATABASE_TYPE != 'mysql') {
$characterset_defined = true;
break;
}
if (!defined('SENDSTUDIO_CHARSET')) {
break;
}
if (SENDSTUDIO_CHARSET != 'UTF-8') {
$characterset_defined = true;
break;
}
if (!defined('SENDSTUDIO_DATABASE_UTF8PATCH')) {
define('SENDSTUDIO_DATABASE_UTF8PATCH', false);
}
if (!SENDSTUDIO_DATABASE_UTF8PATCH) {
$characterset_defined = true;
break;
}
$db->Query("SET NAMES 'utf8'");
$db->charset = 'utf8';
$characterset_defined = true;
break;
}
return $db;
But in 6.1.2 is not.
Thank you very much if you can show me when got my problem.
I happy when get IEM 6.1.2 from you, but i got a problem with UTF-8 when i edit my campain.
I was check SendStudio_Functions.php file, and replace:
$htmlContent = htmlentities($htmlContent, ENT_QUOTES);
by
$htmlContent = htmlentities($htmlContent, ENT_QUOTES, SENDSTUDIO_CHARSET);
But it can't work for me.
And i find other difference from 6.1.2 and 6.1.4 in IEM.class.php:
In 6.1.4 has:
while (!$characterset_defined) {
if (is_null($db) || $db === false || !defined('SENDSTUDIO_DATABASE_TYPE')) {
break;
}
if (SENDSTUDIO_DATABASE_TYPE != 'mysql') {
$characterset_defined = true;
break;
}
if (!defined('SENDSTUDIO_CHARSET')) {
break;
}
if (SENDSTUDIO_CHARSET != 'UTF-8') {
$characterset_defined = true;
break;
}
if (!defined('SENDSTUDIO_DATABASE_UTF8PATCH')) {
define('SENDSTUDIO_DATABASE_UTF8PATCH', false);
}
if (!SENDSTUDIO_DATABASE_UTF8PATCH) {
$characterset_defined = true;
break;
}
$db->Query("SET NAMES 'utf8'");
$db->charset = 'utf8';
$characterset_defined = true;
break;
}
return $db;
But in 6.1.2 is not.
Thank you very much if you can show me when got my problem.