]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/forum/Cannot_run_ikiwiki_due_to_Encode.pm/comment_1_3be380ae32e9e6f65d47975827950050._comment
anon push test
[git.ikiwiki.info.git] / doc / forum / Cannot_run_ikiwiki_due_to_Encode.pm / comment_1_3be380ae32e9e6f65d47975827950050._comment
1 [[!comment format=mdwn
2  username="https://www.google.com/accounts/o8/id?id=AItOawlobQ5j7hQVIGkwMWW3yKB_DWqthJcpnsQ"
3  nickname="Qi"
4  subject="Fix"
5  date="2015-02-25T05:43:26Z"
6  content="""
7 I fixed it by adding
9 ~~~
10 sub decode($$;$) {
11     my ( $name, $octets, $check ) = @_;
12     return undef unless defined $octets;
13     return $octets if Encode::is_utf8($octets);  # add this check
14         $octets .= '';
15 ~~~
16 """]]