From f4da5a9902117a33619aa83269f53679eb674485 Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawlobQ5j7hQVIGkwMWW3yKB_DWqthJcpnsQ" Date: Wed, 25 Feb 2015 01:43:27 -0400 Subject: Added a comment: Fix --- .../comment_1_3be380ae32e9e6f65d47975827950050._comment | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 doc/forum/Cannot_run_ikiwiki_due_to_Encode.pm/comment_1_3be380ae32e9e6f65d47975827950050._comment 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 .= ''; +``` +"""]] -- cgit v1.2.3