--- Webpacus/lib/Webpacus/Controller/Editor.pm 2005/11/27 05:07:01 178 +++ Webpacus/lib/Webpacus/Controller/Editor.pm 2005/11/27 15:14:54 179 @@ -65,6 +65,9 @@ my $template_full_path = "$template_path/$template_filename"; if ($c->req->params->{save_template}) { + + $c->response->content_type('text/html; charset=utf-8'); + my $t = $c->req->params->{template_content}; my $size = length($t); $c->log->debug("saving $template_full_path, $size bytes"); @@ -80,6 +83,7 @@ if (! -r $template_full_path) { $c->log->warn("can't find '$template_full_path': $!"); + $c->response->content_type('text/html; charset=utf-8'); $c->res->output("can't find template '$template_full_path'"); return; } @@ -117,6 +121,9 @@ my $css_full_path = "$css_path/$css_filename"; if ($c->req->params->{save_css}) { + + $c->response->content_type('text/html; charset=utf-8'); + my $t = $c->req->params->{css_content}; my $size = length($t); $c->log->debug("saving $css_full_path, $size bytes"); @@ -161,6 +168,7 @@ my $webpac = $c->comp('Model::WebPAC'); + $c->response->content_type('text/html; charset=utf-8'); $c->res->output( $webpac->record( mfn => $mfn, template => $template_filename ) );