utf8_decode in modules.inc.php (processDatalog)?
Please tell me for what is utf8_decode() in function processDatalog() from lib/classes/modules.inc.php in that code?
//** encode data to utf-8 and unserialize it
if(!$data = unserialize(stripslashes($d['data']))) {
$data = unserialize($d['data']);
}
//** Decode data back to locale
foreach($data['old'] as $key => $val) {
$data['old'][$key] = utf8_decode($val);
}
foreach($data['new'] as $key => $val) {
$data['new'][$key] = utf8_decode($val);
}
Two times, one for "multiserver setup" and one for "single server setup".
I'm asking this because "utf8_decode" here damages all locale character set.
Eg. in autoresponder text. Also in "multiserver setup" section this breaking all locale characters (UTF-8) in replication from master database.
(In my case POLISH characterset).
|
Recent comments
1 day 5 hours ago
1 day 7 hours ago
1 day 19 hours ago
1 day 22 hours ago
2 days 2 hours ago
2 days 8 hours ago
2 days 18 hours ago
2 days 20 hours ago
3 days 4 hours ago
3 days 5 hours ago