]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/utf-8_bug_in_websetup.pm.mdwn
(no commit message)
[ikiwiki.git] / doc / bugs / utf-8_bug_in_websetup.pm.mdwn
1 [[!tag patch bugs]]
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 > Fully fixing it is slightly more complex, but now [[done]] --[[Joey]] 
8
9 ----
10
11     --- websetup.pm     2009-12-02 05:07:46.000000000 +0800
12     +++ /usr/share/perl5/IkiWiki/Plugin/websetup.pm     2010-01-08 22:05:16.000000000 +0800
13     @@ -308,7 +308,8 @@
14                         $fields{$_}=$shown{$_} foreach keys %shown;
15                 }
16         }
17     -   
18     +
19     +   IkiWiki::decode_form_utf8($form);       
20         if ($form->submitted eq "Cancel") {
21                 IkiWiki::redirect($cgi, $config{url});
22                 return;