http://www.google.com/profiles/lingo.t.l.chen 2010-01-08 14:55:58 +00:00 committed by Joey Hess
parent 6257a71407
commit dca9634202
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
[[!tag patch]]
I type chinese characters into the fields. After press "save setup" button the characters turn into gibberish.
I submit a patch that solve the problem for me. --Lingo
----
--- websetup.pm 2009-12-02 05:07:46.000000000 +0800
+++ /usr/share/perl5/IkiWiki/Plugin/websetup.pm 2010-01-08 22:05:16.000000000 +0800
@@ -308,7 +308,8 @@
$fields{$_}=$shown{$_} foreach keys %shown;
}
}
-
+
+ IkiWiki::decode_form_utf8($form);
if ($form->submitted eq "Cancel") {
IkiWiki::redirect($cgi, $config{url});
return;