Changeset 22895 for lang/perl/Moxy
- Timestamp:
- 11/07/08 10:04:47 (2 months ago)
- Location:
- lang/perl/Moxy/trunk/lib/Moxy
- Files:
-
- 3 modified
-
Plugin.pm (modified) (1 diff)
-
Plugin/ControlPanel.pm (modified) (1 diff)
-
Plugin/ShowHTMLSource.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Moxy/trunk/lib/Moxy/Plugin.pm
r9968 r22895 22 22 my ($self, $context, $fname, $args) = @_; 23 23 24 my $tt = Template->new(ABSOLUTE => 1); 24 my $tt = Template->new( 25 ABSOLUTE => 1, 26 ENCODING => 'utf8', 27 ); 25 28 $tt->process( 26 29 $self->assets_path($context)->file($fname)->stringify, -
lang/perl/Moxy/trunk/lib/Moxy/Plugin/ControlPanel.pm
r22891 r22895 31 31 my $charset = $args->{response}->charset; 32 32 my $enc = Encode::find_encoding($charset); 33 Encode::from_to($output, 'utf-8', $enc ? $enc->name : 'utf-8');33 $output = Encode::encode(($enc ? $enc->name : 'utf-8'), $output); 34 34 35 35 # insert control panel to html response. -
lang/perl/Moxy/trunk/lib/Moxy/Plugin/ShowHTMLSource.pm
r22805 r22895 12 12 $context->log(debug => 'dump html source'); 13 13 14 my $charset = $args->{response}->charset; 15 my $enc = Encode::find_encoding($charset); 14 16 return $self->render_template( 15 17 $context, 16 18 'panel.tt' => { 17 html => $args->{response}->content(),19 html => decode($enc, $args->{response}->content()), 18 20 } 19 21 );
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)