summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-11-20 13:03:33 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-11-20 13:03:33 +0100
commit5a0c0125a8e21f87fa667c5ee33e52597d6b51ef (patch)
tree729862e20f4b9fa3732eee3365206b5a893488c3
parentd146e44ff3a8b3304e6603a2238c40034c4b91a1 (diff)
correct errstr encoding
-rw-r--r--lib/Travel/Status/DE/VRR.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Travel/Status/DE/VRR.pm b/lib/Travel/Status/DE/VRR.pm
index 3efb1e8..ed97712 100644
--- a/lib/Travel/Status/DE/VRR.pm
+++ b/lib/Travel/Status/DE/VRR.pm
@@ -174,7 +174,7 @@ sub check_for_ambiguous {
$self->{errstr} = sprintf(
'Ambiguous place input: %s',
join( q{ | },
- map { $_->textContent }
+ map { decode( 'UTF-8', $_->textContent ) }
@{ $e_place->findnodes($xp_place_elem) } )
);
return;
@@ -183,7 +183,8 @@ sub check_for_ambiguous {
$self->{errstr} = sprintf(
'Ambiguous name input: %s',
join( q{ | },
- map { $_->textContent } @{ $e_name->findnodes($xp_name_elem) } )
+ map { decode( 'UTF-8', $_->textContent ) }
+ @{ $e_name->findnodes($xp_name_elem) } )
);
return;
}