From fdf441a8b72b7b3270144b0a9fcd061266d73f3c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 25 May 2012 14:27:56 +0000 Subject: [PATCH] Set utf-8 encoding on raw log pages --- src/lib/Hydra/View/Plain.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/Hydra/View/Plain.pm b/src/lib/Hydra/View/Plain.pm index d6f7ea92..2c023667 100644 --- a/src/lib/Hydra/View/Plain.pm +++ b/src/lib/Hydra/View/Plain.pm @@ -4,4 +4,10 @@ use strict; use warnings; use base 'Catalyst::View::Download::Plain'; +sub process { + my ($self, $c) = @_; + $c->res->content_encoding("utf-8"); + $self->SUPER::process($c); +} + 1;