From 5a0c0125a8e21f87fa667c5ee33e52597d6b51ef Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 20 Nov 2011 13:03:33 +0100 Subject: correct errstr encoding --- lib/Travel/Status/DE/VRR.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/Travel/Status') 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; } -- cgit v1.2.3