summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-03-06 20:00:31 +0100
committerDaniel Friesel <derf@finalrewind.org>2015-03-06 20:00:31 +0100
commitab524754caf72694297437a083d6e3c2f4b8801c (patch)
tree3d5e2506d98c4674c05b08eb0e60c67938f55802
parent7614dc8ff0318e14e1cd7a590ee817ce5050923e (diff)
lol unicode
-rw-r--r--index.pl3
1 files changed, 2 insertions, 1 deletions
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"
)