From 9cc06b36825c40cf97fd0db32e43582e6aa64783 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 3 Jan 2019 21:08:01 +0100 Subject: Fix unicode issue --- lib/Travel/Status/DE/DBWagenreihung.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Travel/Status/DE/DBWagenreihung.pm') 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}; -- cgit v1.2.3