diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-03-06 20:00:31 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-03-06 20:00:31 +0100 |
commit | ab524754caf72694297437a083d6e3c2f4b8801c (patch) | |
tree | 3d5e2506d98c4674c05b08eb0e60c67938f55802 | |
parent | 7614dc8ff0318e14e1cd7a590ee817ce5050923e (diff) |
lol unicode
-rw-r--r-- | index.pl | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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" ) |