From ab524754caf72694297437a083d6e3c2f4b8801c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 6 Mar 2015 20:00:31 +0100 Subject: lol unicode --- index.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'index.pl') diff --git a/index.pl b/index.pl index a44c0bd..2dfb5ca 100644 --- a/index.pl +++ b/index.pl @@ -1,6 +1,7 @@ #!/usr/bin/env perl use Mojolicious::Lite; use DBI; +use Encode qw(decode); use Travel::Status::DE::IRIS; use Travel::Status::DE::IRIS::Stations; use 5.014; @@ -120,7 +121,7 @@ helper barplot_filters => sub { ], destinations => [ q{}, - map { $_->[0] } @{ + map { decode('utf8', $_->[0]) } @{ $dbh->selectall_arrayref( "select distinct destination from $table order by destination" ) -- cgit v1.2.3