]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Added a comment: Fix
authorhttps://www.google.com/accounts/o8/id?id=AItOawlobQ5j7hQVIGkwMWW3yKB_DWqthJcpnsQ <Qi@web>
Wed, 25 Feb 2015 05:43:27 +0000 (01:43 -0400)
committeradmin <admin@branchable.com>
Wed, 25 Feb 2015 05:43:27 +0000 (01:43 -0400)
doc/forum/Cannot_run_ikiwiki_due_to_Encode.pm/comment_1_3be380ae32e9e6f65d47975827950050._comment [new file with mode: 0644]

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 (file)
index 0000000..752141c
--- /dev/null
@@ -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 .= '';
+```
+"""]]