diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-05-30 20:07:13 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-05-30 20:07:13 +0200 |
commit | 34c8e23fbb16c249fc7b09289cf90f76c375501f (patch) | |
tree | 0d224dc383874d6e6fd5de65eff576bd8ea81097 /lib/Travel | |
parent | 3508c463edff025e8a3431c101ef796cad854683 (diff) |
create_post: Encode -everything- as ISO-8859-15. Fixes odd encoding issue.
Diffstat (limited to 'lib/Travel')
-rw-r--r-- | lib/Travel/Routing/DE/EFA.pm | 7 |
1 files changed, 4 insertions, 3 deletions
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; } |