Skip to content
Snippets Groups Projects
Commit 8bc68269 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

StopFinder: Return data with proper encoding

parent 38565092
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ use utf8;
no if $] >= 5.018, warnings => 'experimental::smartmatch';
use Carp qw(confess);
use Encode qw(decode);
use JSON;
use LWP::UserAgent;
......@@ -54,7 +55,7 @@ sub new {
return $ref;
}
$ref->{raw_reply} = $reply->content;
$ref->{raw_reply} = $reply->decoded_content;
$ref->{raw_reply} =~ s{ ^ SLs [.] sls = }{}x;
$ref->{raw_reply} =~ s{ ; SLs [.] showSuggestion [(] [)] ; $ }{}x;
......@@ -84,7 +85,7 @@ sub results {
push(
@{ $self->{results} },
{
name => $result->{value},
name => decode('iso-8859-15', $result->{value}),
id => $result->{extId}
}
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment