]> git.donarmstrong.com Git - infobot.git/commitdiff
encode_utf8 if is_utf8 on from DB
authorDon Armstrong <don@donarmstrong.com>
Fri, 29 Dec 2017 23:03:32 +0000 (15:03 -0800)
committerDon Armstrong <don@donarmstrong.com>
Fri, 29 Dec 2017 23:03:32 +0000 (15:03 -0800)
src/Factoids/Reply.pl

index 89faac20de8f0600bf0eba97af5d636d3e2af0fa..53def745dd8715418854c97ab05f45b84e20c774 100644 (file)
@@ -57,6 +57,7 @@ sub getReply {
         );
         last if ($result);
     }
+    $result = encode_utf8($result) if is_utf8($result);
 
     if ($result) {
         $lhs = $message;