X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FTest-WWW-Mechanize-Catalyst.git;a=blobdiff_plain;f=t%2Flib%2FCatty%2FController%2FRoot.pm;fp=t%2Flib%2FCatty%2FController%2FRoot.pm;h=17498fd62c4017d222b299aaa1886223649f7fa3;hp=77a28250f0f5306af3c167f94178a18e5e38d883;hb=182c043a06d347ba87a5a5de87f8c33de8e3b5fd;hpb=dedbb26e790ded84fe40dfc159a30f4c7d17b578 diff --git a/t/lib/Catty/Controller/Root.pm b/t/lib/Catty/Controller/Root.pm index 77a2825..17498fd 100644 --- a/t/lib/Catty/Controller/Root.pm +++ b/t/lib/Catty/Controller/Root.pm @@ -121,7 +121,7 @@ sub gzipped : Global { # control both ends, so just always gzip the response. require Compress::Zlib; - my $html = html( "Hello", "Hi there! ☺" ); + my $html = Encode::encode('UTF-8', html( "Hello", "Hi there! ☺" )); $c->response->content_type("text/html; charset=utf-8"); $c->response->output( Compress::Zlib::memGzip($html) ); $c->response->content_encoding('gzip');