From: https://www.google.com/accounts/o8/id?id=AItOawlobQ5j7hQVIGkwMWW3yKB_DWqthJcpnsQ Date: Wed, 25 Feb 2015 05:43:27 +0000 (-0400) Subject: Added a comment: Fix X-Git-Tag: debian/3.20150329~59 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/f4da5a9902117a33619aa83269f53679eb674485?hp=f07355f9cbc57e0f99c05ae98ff053489903721d Added a comment: Fix --- diff --git a/doc/forum/Cannot_run_ikiwiki_due_to_Encode.pm/comment_1_3be380ae32e9e6f65d47975827950050._comment b/doc/forum/Cannot_run_ikiwiki_due_to_Encode.pm/comment_1_3be380ae32e9e6f65d47975827950050._comment new file mode 100644 index 000000000..752141c67 --- /dev/null +++ b/doc/forum/Cannot_run_ikiwiki_due_to_Encode.pm/comment_1_3be380ae32e9e6f65d47975827950050._comment @@ -0,0 +1,15 @@ +[[!comment format=mdwn + username="https://www.google.com/accounts/o8/id?id=AItOawlobQ5j7hQVIGkwMWW3yKB_DWqthJcpnsQ" + nickname="Qi" + subject="Fix" + date="2015-02-25T05:43:26Z" + content=""" +I fixed it by adding +``` +sub decode($$;$) { + my ( $name, $octets, $check ) = @_; + return undef unless defined $octets; + return $octets if Encode::is_utf8($octets); # add this check + $octets .= ''; +``` +"""]]