From 0451723bc99ac7bb5c30c3a2dfe3fecf96e9f0ae Mon Sep 17 00:00:00 2001 From: florenttorregrosa Date: Mon, 12 Dec 2016 12:09:16 +0100 Subject: [PATCH] Issue #2828756 by Grimreaper: Special characters are being incorrectly encoded (accents, tildes) in the tweet contents field --- tweet_feed.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweet_feed.module b/tweet_feed.module index 070391a..1dd1d5b 100644 --- a/tweet_feed.module +++ b/tweet_feed.module @@ -786,7 +786,7 @@ function tweet_feed_save_tweet($tweet, $feed, $update_node_id = 0, $hash = NULL, // The tweet itself goes into the tweet contents field $node->field_tweet_contents[$node->language][0] = array( - 'value' => utf8_encode(htmlspecialchars_decode($tweet_html)), + 'value' => htmlspecialchars_decode(utf8_encode($tweet_html)), 'format' => 'full_html', ); -- 1.9.1