summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-01-03 21:08:01 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-01-03 21:08:01 +0100
commit9cc06b36825c40cf97fd0db32e43582e6aa64783 (patch)
tree0a582494dedf0646fd744f6506d29f0c66a860fe
parenta292fc5ba4a8be919f2fc467cf528b79a6f8c7a3 (diff)
Fix unicode issue
-rw-r--r--lib/Travel/Status/DE/DBWagenreihung.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/DBWagenreihung.pm b/lib/Travel/Status/DE/DBWagenreihung.pm
index 2febe4d..7bba010 100644
--- a/lib/Travel/Status/DE/DBWagenreihung.pm
+++ b/lib/Travel/Status/DE/DBWagenreihung.pm
@@ -70,7 +70,7 @@ sub get_wagonorder {
$self->{errstr} = "Failed to fetch station data: $err";
return;
}
- my $json = $self->{json}->decode($content);
+ my $json = $self->{json}->utf8->decode($content);
if ( exists $json->{error} ) {
$self->{errstr} = 'Backend error: ' . $json->{error}{msg};