From 6492fd43b05bef42edc6b3b793f0ffc6b047ca28 Mon Sep 17 00:00:00 2001 From: Luca Stefani Date: Tue, 27 Jun 2017 15:04:44 +0200 Subject: [PATCH] GoogleSuggestions: Switch to UTF-8 encoding --- .../lightning/search/suggestions/GoogleSuggestionsModel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/acr/browser/lightning/search/suggestions/GoogleSuggestionsModel.java b/app/src/main/java/acr/browser/lightning/search/suggestions/GoogleSuggestionsModel.java index 1128766..53ce9b9 100644 --- a/app/src/main/java/acr/browser/lightning/search/suggestions/GoogleSuggestionsModel.java +++ b/app/src/main/java/acr/browser/lightning/search/suggestions/GoogleSuggestionsModel.java @@ -20,7 +20,7 @@ import acr.browser.lightning.database.HistoryItem; */ public class GoogleSuggestionsModel extends BaseSuggestionsModel { - @NonNull private static final String ENCODING = "ISO-8859-1"; + @NonNull private static final String ENCODING = "UTF-8"; @Nullable private static XmlPullParser sXpp; @NonNull private final String mSearchSubtitle; @@ -31,7 +31,7 @@ public class GoogleSuggestionsModel extends BaseSuggestionsModel { @NonNull protected String createQueryUrl(@NonNull String query, @NonNull String language) { - return "https://suggestqueries.google.com/complete/search?output=toolbar&oe=latin1&hl=" + return "https://suggestqueries.google.com/complete/search?output=toolbar&hl=" + language + "&q=" + query; }