From 1e8393875fd5de00b91434988c67675458db9e9e Mon Sep 17 00:00:00 2001
From: megachriz <megachriz@654114.no-reply.drupal.org>
Date: Mon, 30 May 2016 19:24:45 +0200
Subject: [PATCH] Issue #2730207 by MegaChriz: Fixed logging failed items that
 are not UTF-8-encoded.

---
 plugins/FeedsProcessor.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/FeedsProcessor.inc b/plugins/FeedsProcessor.inc
index d2d13dd0..00dc6aa1 100644
--- a/plugins/FeedsProcessor.inc
+++ b/plugins/FeedsProcessor.inc
@@ -1264,7 +1264,7 @@ abstract class FeedsProcessor extends FeedsPlugin {
 
     foreach ($out as $key => $value) {
       if (is_string($value)) {
-        $out[$key] = truncate_utf8($value, 100, FALSE, TRUE);
+        $out[$key] = truncate_utf8(utf8_encode($value), 100, FALSE, TRUE);
       }
     }
 
-- 
GitLab