]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/bugs/utf-8_bug_in_websetup.pm.mdwn
I think planets now behave as they should.
[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 > Fully fixing it is slightly more complex, but now [[done]] --[[Joey]] 
9 ----
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;