* YA utf-8 patch from Recai, this time to fix previewing a page so that

the text in the input box is re-encoded back to utf-8.
master
joey 2006-06-15 03:44:27 +00:00
parent 3405864bc4
commit 070f255d6c
2 changed files with 12 additions and 2 deletions

View File

@ -353,9 +353,12 @@ sub cgi_editpage ($$) { #{{{
}
elsif ($form->submitted eq "Preview") {
require IkiWiki::Render;
require Encode;
my $content = Encode::decode_utf8($form->field('editcontent'));
$form->field(name => "editcontent", value => $content, force => 1);
$form->tmpl_param("page_preview",
htmlize($config{default_pageext},
linkify($page, $page, $form->field('editcontent'))));
Encode::decode_utf8(htmlize($config{default_pageext},
linkify($page, $page, $content))));
}
else {
$form->tmpl_param("page_preview", "");

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
ikiwiki (1.6) UNRELEASED; urgency=low
* YA utf-8 patch from Recai, this time to fix previewing a page so that
the text in the input box is re-encoded back to utf-8.
-- Joey Hess <joeyh@debian.org> Wed, 14 Jun 2006 23:38:40 -0400
ikiwiki (1.5) unstable; urgency=low
* Add --timeformat config option to allow changing how dates are displayed.