Skip to content
Snippets Groups Projects
Commit fa7c51b5 authored by megachriz's avatar megachriz Committed by MegaChriz
Browse files

Issue #2730207 by MegaChriz, twistor: Correction for the fix to log items that...

Issue #2730207 by MegaChriz, twistor: Correction for the fix to log items that are not UTF-8-encoded.
parent 1e839387
No related branches found
No related tags found
No related merge requests found
......@@ -1264,7 +1264,10 @@ abstract class FeedsProcessor extends FeedsPlugin {
foreach ($out as $key => $value) {
if (is_string($value)) {
$out[$key] = truncate_utf8(utf8_encode($value), 100, FALSE, TRUE);
if (function_exists('mb_check_encoding') && !mb_check_encoding($value, 'UTF-8')) {
$value = utf8_encode($value);
}
$out[$key] = truncate_utf8($value, 100, FALSE, TRUE);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment