Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/org/adblockplus/sbrowser/contentblocker/engine/Subscriptions.java

Issue 29376835: Issue 4769 - Supporting adding whitelisted websites on ABP for Samsung Internet (Closed)
Patch Set: Removing some Java7 features and some code style adjustment Created March 9, 2017, 9:11 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/org/adblockplus/sbrowser/contentblocker/engine/Subscriptions.java
===================================================================
--- a/src/org/adblockplus/sbrowser/contentblocker/engine/Subscriptions.java
+++ b/src/org/adblockplus/sbrowser/contentblocker/engine/Subscriptions.java
@@ -174,17 +174,17 @@ final class Subscriptions
s.clearFilters();
s.deserializeFilters(this.getFiltersFile(s));
s.getFilters(filters);
s.clearFilters();
}
}
final BufferedWriter w = new BufferedWriter(
- new OutputStreamWriter(new FileOutputStream(output), "UTF-8"));
+ new OutputStreamWriter(new FileOutputStream(output), Engine.CHARSET_UTF_8));
try
{
Log.d(TAG, "Writing " + filters.size() + " filters");
Engine.writeFilterHeaders(w);
for (final String filter : filters)
{
w.write(filter);
w.write('\n');

Powered by Google App Engine
This is Rietveld