From a2f81095acaa7f73ee79d1fdddef3dd47518c9c2 Mon Sep 17 00:00:00 2001 From: Neil Moore Date: Mon, 30 Apr 2012 17:39:38 -0500 Subject: Parse monster output as UTF-8. --- lib/Crawl/Bot/Plugin/Monster.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Crawl/Bot/Plugin/Monster.pm b/lib/Crawl/Bot/Plugin/Monster.pm index 6140c70..ffa5940 100644 --- a/lib/Crawl/Bot/Plugin/Monster.pm +++ b/lib/Crawl/Bot/Plugin/Monster.pm @@ -36,6 +36,7 @@ sub get_monster_info { exec "bin/monster-$branch", $monster or die "could not execute monster-$branch: $!"; }; + binmode F, ":utf8"; local $/ = undef; my $resp = ; CORE::close(F); -- cgit v1.2.3-54-g00ecf