diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-01-06 13:43:29 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-01-06 13:43:29 +0100 |
commit | 574e641846ced2bec34276c9667eaefb0182fb7d (patch) | |
tree | e1eda8b574006bd6d2e2b692bcdc827681dfc043 /bin/efa-m | |
parent | 8502e801d50f66244a20f6a3561d4cf943d3bb77 (diff) |
Handle Umlauts in efa-m and EFA.pm
Diffstat (limited to 'bin/efa-m')
-rwxr-xr-x | bin/efa-m | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -9,6 +9,7 @@ our $VERSION = '1.06'; binmode( STDOUT, ':encoding(utf-8)' ); +use Encode qw(decode); use Getopt::Long qw(:config no_ignore_case); use List::Util qw(max); use Travel::Status::DE::EFA; @@ -40,6 +41,9 @@ if ( @ARGV != 2 ) { my ( $place, $input ) = @ARGV; +$place = decode( 'UTF-8', $place ); +$input = decode( 'UTF-8', $input ); + if ( $input =~ s{ ^ (?<type> address|poi|stop) : }{}x ) { $input_type = $+{type}; } |