]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/bugs/utf-8_bug_in_websetup.pm.mdwn
c3a5262cd76dd95e095366a785182eab26bec46a
[git.ikiwiki.info.git] / doc / bugs / utf-8_bug_in_websetup.pm.mdwn
1 [[!tag patch bugs]]
3 I type chinese characters into the fields. After press "save setup" button the characters turn into gibberish.
5 I submit a patch that solve the problem for me.  --Lingo
7 ----
9     --- websetup.pm     2009-12-02 05:07:46.000000000 +0800
10     +++ /usr/share/perl5/IkiWiki/Plugin/websetup.pm     2010-01-08 22:05:16.000000000 +0800
11     @@ -308,7 +308,8 @@
12                         $fields{$_}=$shown{$_} foreach keys %shown;
13                 }
14         }
15     -   
16     +
17     +   IkiWiki::decode_form_utf8($form);       
18         if ($form->submitted eq "Cancel") {
19                 IkiWiki::redirect($cgi, $config{url});
20                 return;