(no commit message)
[ikiwiki.git] / doc / bugs / utf-8_bug_in_websetup.pm.mdwn
1 [[!tag patch]]
2
3 I type chinese characters into the fields. After press "save setup" button the characters turn into gibberish.
4
5 I submit a patch that solve the problem for me.  --Lingo
6
7 ----
8
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;