diff options
author | Changaco <<changaco@changaco.net> | 2013-06-04 02:54:35 +0200 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-06-23 14:01:59 -0400 |
commit | e51169132aaaafb5b90515ad1165e513e8953c91 (patch) | |
tree | b2e15f99d2ede7518006cb17aed87ab054cb31c7 /IkiWiki | |
parent | 40254c85e3a150ddaca157ba03c0474da146f997 (diff) | |
download | ikiwiki-e51169132aaaafb5b90515ad1165e513e8953c91.tar ikiwiki-e51169132aaaafb5b90515ad1165e513e8953c91.tar.gz |
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.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/blogspam.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/blogspam.pm b/IkiWiki/Plugin/blogspam.pm index d32c2f169..e48ed729f 100644 --- a/IkiWiki/Plugin/blogspam.pm +++ b/IkiWiki/Plugin/blogspam.pm @@ -53,6 +53,7 @@ sub checkconfig () { eval q{ use RPC::XML; use RPC::XML::Client; + $RPC::XML::ENCODING = 'utf-8'; }; error $@ if $@; } |