From: Don Armstrong Date: Fri, 29 Dec 2017 22:50:58 +0000 (-0800) Subject: add debugging for getFactoid X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=17eef2ec03503846c7308ea40461c292b1e435d8;hp=2c5d80ce71ef3f11f56acc57ad19ca5ad6daf2f4;p=infobot.git add debugging for getFactoid --- diff --git a/src/Factoids/DBCommon.pl b/src/Factoids/DBCommon.pl index 9a22b9e..6176d61 100644 --- a/src/Factoids/DBCommon.pl +++ b/src/Factoids/DBCommon.pl @@ -23,6 +23,7 @@ sub getFactInfo { # Usage: &getFactoid($faqtoid); sub getFactoid { my $val = getFactInfo( $_[0], 'factoid_value' ); + DEBUG("getFactoid: $val is_utf8:".is_utf8($val)); return encode_utf8($val) if is_utf8($val); return $val; }