Browse Source

Fixed URL Encoding for Search Suggestions so that special characters work

master
Anthony Restaino 10 years ago
parent
commit
748c70b280
  1. 3
      src/acr/browser/lightning/SearchAdapter.java

3
src/acr/browser/lightning/SearchAdapter.java

@ -39,7 +39,6 @@ public class SearchAdapter extends BaseAdapter implements Filterable { @@ -39,7 +39,6 @@ public class SearchAdapter extends BaseAdapter implements Filterable {
private boolean mIncognito;
private BookmarkManager mBookmarkManager;
private static final String ENCODING = "ISO-8859-1";
private static final String URL_ENCODING = "UTF-8";
private XmlPullParserFactory mFactory;
private XmlPullParser mXpp;
private String mSearchSubtitle;
@ -269,7 +268,7 @@ public class SearchAdapter extends BaseAdapter implements Filterable { @@ -269,7 +268,7 @@ public class SearchAdapter extends BaseAdapter implements Filterable {
if (mXpp == null) {
mXpp = mFactory.newPullParser();
}
mXpp.setInput(download, URL_ENCODING);
mXpp.setInput(download, ENCODING);
int eventType = mXpp.getEventType();
int counter = 0;
while (eventType != XmlPullParser.END_DOCUMENT) {

Loading…
Cancel
Save