From 17eef2ec03503846c7308ea40461c292b1e435d8 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Fri, 29 Dec 2017 14:50:58 -0800 Subject: [PATCH 1/1] add debugging for getFactoid --- src/Factoids/DBCommon.pl | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.39.2