summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-05-30 20:07:13 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-05-30 20:07:13 +0200
commit34c8e23fbb16c249fc7b09289cf90f76c375501f (patch)
tree0d224dc383874d6e6fd5de65eff576bd8ea81097
parent3508c463edff025e8a3431c101ef796cad854683 (diff)
create_post: Encode -everything- as ISO-8859-15. Fixes odd encoding issue.
-rw-r--r--Changelog4
-rw-r--r--lib/Travel/Routing/DE/EFA.pm7
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;
}