fix encoding issue in blogspam plugin

RPC::XML uses ascii as default encoding, we have to tell it to use utf8.

Without this, ikiwiki returns "failed to get response from blogspam server"
every time a non-ascii character is used in a content that needs checking.
master
Changaco 2013-06-04 02:54:35 +02:00 committed by Joey Hess
parent 40254c85e3
commit e51169132a
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ sub checkconfig () {
eval q{
use RPC::XML;
use RPC::XML::Client;
$RPC::XML::ENCODING = 'utf-8';
};
error $@ if $@;
}