summaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-02-10 16:17:11 +0100
committerDaniel Friesel <derf@finalrewind.org>2013-02-10 16:17:11 +0100
commit945379f1ca34642556bccefe637c3d444d893210 (patch)
tree2039a74eeeb75b228dda6ee30971ea889379221b /cgi
parentf25f84f9a8de6cc3a7ee1431be413b35f1de7e6b (diff)
Fix encoding (it's actually UTF-8)
Diffstat (limited to 'cgi')
-rw-r--r--cgi/index.pl4
-rw-r--r--cgi/templates/layouts/default.html.ep2
2 files changed, 4 insertions, 2 deletions
diff --git a/cgi/index.pl b/cgi/index.pl
index 807907a..6abb47a 100644
--- a/cgi/index.pl
+++ b/cgi/index.pl
@@ -2,6 +2,8 @@
use Mojolicious::Lite;
use Cache::File;
use Travel::Status::DE::DeutscheBahn;
+use 5.014;
+use utf8;
our $VERSION = '0.03';
@@ -85,7 +87,7 @@ sub handle_request {
$info = undef;
}
if ($info) {
- $info =~ s{ ^ (?: ca\. \s* )? \+ (\d+) }{Verspaetung ca. $1 Minuten}x;
+ $info =~ s{ ^ (?: ca\. \s* )? \+ (\d+) }{Verspätung ca. $1 Minuten}x;
$info =~ s{ 1 \s Minute\Kn }{}x;
}
push(
diff --git a/cgi/templates/layouts/default.html.ep b/cgi/templates/layouts/default.html.ep
index 3ab805b..09a17c0 100644
--- a/cgi/templates/layouts/default.html.ep
+++ b/cgi/templates/layouts/default.html.ep
@@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title><%= $title %></title>
- <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
+ <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<style type="text/css">
html {