Twitter: no need to encode/decode string
[quotesite.git] / quotesite / TwitterGrabber.pm
index 286b962..3c2c0aa 100644 (file)
@@ -58,7 +58,7 @@ sub _parse {
         return undef;
     }
 
-    $metadata->{'CONTENT'} = encode("utf8", decode_entities(decode("utf8", $t->{'text'})));
+    $metadata->{'CONTENT'} = decode_entities($t->{'text'});
     $metadata->{'ID'} = $t->{'user'}->{'screen_name'} . '/' . $metadata->{'ID'};
 
     unless(defined($metadata->{'CONTENT'})) {