diff -ur Apache-Gallery-1.0.2/lib/Apache/Gallery.pm Apache-Gallery-1.0.2_fix/lib/Apache/Gallery.pm --- Apache-Gallery-1.0.2/lib/Apache/Gallery.pm 2011-06-08 20:47:46.000000000 +0200 +++ Apache-Gallery-1.0.2_fix/lib/Apache/Gallery.pm 2016-06-09 22:28:47.590435743 +0200 @@ -104,7 +104,7 @@ if ($cgi->param('selection')) { my @selected = $cgi->param('selection'); my $content = join "
\n",@selected; - $r->content_type('text/html'); + $r->content_type('text/html; charset=utf-8'); $r->headers_out->{'Content-Length'} = length($content); if (!$::MP2) { @@ -494,7 +494,7 @@ } my %info = ( URL => "../".$neighbour_directories[$neightbour_counter-1], - LINK_NAME => "<<< $linktext", + LINK_NAME => "<<< $linktext", DIR_FILES => "", ); $tpl_vars{PREV_DIR_FILES} = $templates{navdirectory}->fill_in(HASH=> {%info}); @@ -508,7 +508,7 @@ } my %info = ( URL => "../".$neighbour_directories[$neightbour_counter+1], - LINK_NAME => "$linktext >>>", + LINK_NAME => "$linktext >>>", DIR_FILES => "", ); $tpl_vars{NEXT_DIR_FILES} = $templates{navdirectory}->fill_in(HASH=> {%info}); @@ -536,7 +536,7 @@ } else { $tpl_vars{MAIN} = $templates{index}->fill_in(HASH => \%tpl_vars); $tpl_vars{MAIN} = $templates{layout}->fill_in(HASH => \%tpl_vars); - $r->content_type('text/html'); + $r->content_type('text/html; charset=utf-8'); } $r->headers_out->{'Content-Length'} = length($tpl_vars{MAIN}); @@ -834,7 +834,7 @@ $tpl_vars{MAIN} = $templates{picture}->fill_in(HASH => \%tpl_vars); $tpl_vars{MAIN} = $templates{layout}->fill_in(HASH => \%tpl_vars); - $r->content_type('text/html'); + $r->content_type('text/html; charset=utf-8'); $r->headers_out->{'Content-Length'} = length($tpl_vars{MAIN}); if (!$::MP2) { @@ -1422,7 +1422,7 @@ $tpl_vars{PAGE} = $templates{layout}->fill_in(HASH => \%tpl_vars); $r->status($statuscode); - $r->content_type('text/html'); + $r->content_type('text/html; charset=utf-8'); $r->print($tpl_vars{PAGE}); diff -ur Apache-Gallery-1.0.2/templates/bright/gallery.css Apache-Gallery-1.0.2_fix/templates/bright/gallery.css --- Apache-Gallery-1.0.2/templates/bright/gallery.css 2011-06-08 19:47:59.000000000 +0200 +++ Apache-Gallery-1.0.2_fix/templates/bright/gallery.css 2016-06-09 22:30:41.454807075 +0200 @@ -104,6 +104,7 @@ border: 4px solid #ddd; padding: 20px; text-align: left; + word-wrap: break-word; top: 0px; width: 620px; } diff -ur Apache-Gallery-1.0.2/templates/bright/layout.tpl Apache-Gallery-1.0.2_fix/templates/bright/layout.tpl --- Apache-Gallery-1.0.2/templates/bright/layout.tpl 2011-06-08 19:47:59.000000000 +0200 +++ Apache-Gallery-1.0.2_fix/templates/bright/layout.tpl 2016-06-09 22:32:13.115882108 +0200 @@ -1,4 +1,4 @@ - + @@ -6,7 +6,7 @@ { $TITLE } - + { $META }