From 34c8e23fbb16c249fc7b09289cf90f76c375501f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 30 May 2015 20:07:13 +0200 Subject: create_post: Encode -everything- as ISO-8859-15. Fixes odd encoding issue. --- Changelog | 4 ++++ lib/Travel/Routing/DE/EFA.pm | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Changelog b/Changelog index c7dc4f8..540cba0 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,7 @@ +git HEAD + + * efa: Fix odd encoding issues when using -w, -t, -d, -a and similar + Travel::Routing::DE::VRR 2.10 - Fri May 29 2015 * efa: Changed -p/--proximity default walking time from 8 to 10 minutes diff --git a/lib/Travel/Routing/DE/EFA.pm b/lib/Travel/Routing/DE/EFA.pm index 6da235a..801270b 100644 --- a/lib/Travel/Routing/DE/EFA.pm +++ b/lib/Travel/Routing/DE/EFA.pm @@ -252,9 +252,6 @@ sub place { ); } - $place = encode( 'ISO-8859-15', $place ); - $stop = encode( 'ISO-8859-15', $stop ); - $type //= 'stop'; @{ $self->{post} }{ "place_${which}", "name_${which}" } = ( $place, $stop ); @@ -399,6 +396,10 @@ sub create_post { $self->with_bike(1); } + for my $val ( values %{ $self->{post} } ) { + $val = encode( 'ISO-8859-15', $val ); + } + return; } -- cgit v1.2.3