Browse Source

Merge pull request #596 from luca020400/patch-1

GoogleSuggestions: Switch to UTF-8 encoding
master
Anthony Restaino 8 years ago committed by GitHub
parent
commit
820b154f7f
  1. 4
      app/src/main/java/acr/browser/lightning/search/suggestions/GoogleSuggestionsModel.java

4
app/src/main/java/acr/browser/lightning/search/suggestions/GoogleSuggestionsModel.java

@ -20,7 +20,7 @@ import acr.browser.lightning.database.HistoryItem; @@ -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 { @@ -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;
}

Loading…
Cancel
Save