mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-23 11:21:29 +00:00
Fixing squid:S1943 - Default system encoding should not be used.
This commit is contained in:
parent
963704778a
commit
1d06411883
3 changed files with 4 additions and 4 deletions
|
@ -135,7 +135,7 @@ public class LogActivity extends SyncthingActivity {
|
|||
pb.redirectErrorStream(true);
|
||||
process = pb.start();
|
||||
BufferedReader bufferedReader = new BufferedReader(
|
||||
new InputStreamReader(process.getInputStream()), 8192);
|
||||
new InputStreamReader(process.getInputStream(), "UTF-8"), 8192);
|
||||
StringBuilder log = new StringBuilder();
|
||||
String line = "";
|
||||
String sep = System.getProperty("line.separator");
|
||||
|
|
|
@ -80,7 +80,7 @@ public class GetTask extends AsyncTask<String, Void, String> {
|
|||
if (entity != null) {
|
||||
InputStream is = entity.getContent();
|
||||
|
||||
BufferedReader br = new BufferedReader(new InputStreamReader(is));
|
||||
BufferedReader br = new BufferedReader(new InputStreamReader(is, "UTF-8"));
|
||||
String line;
|
||||
String result = "";
|
||||
while ((line = br.readLine()) != null) {
|
||||
|
|
|
@ -242,7 +242,7 @@ public class SyncthingRunnable implements Runnable {
|
|||
psOut.writeBytes("exit\n");
|
||||
psOut.flush();
|
||||
ps.waitFor();
|
||||
InputStreamReader isr = new InputStreamReader(ps.getInputStream());
|
||||
InputStreamReader isr = new InputStreamReader(ps.getInputStream(), "UTF-8");
|
||||
BufferedReader br = new BufferedReader(isr);
|
||||
String id;
|
||||
while ((id = br.readLine()) != null) {
|
||||
|
@ -312,7 +312,7 @@ public class SyncthingRunnable implements Runnable {
|
|||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
InputStreamReader isr = new InputStreamReader(is);
|
||||
InputStreamReader isr = new InputStreamReader(is, "UTF-8");
|
||||
BufferedReader br = new BufferedReader(isr);
|
||||
String line;
|
||||
while ((line = br.readLine()) != null) {
|
||||
|
|
Loading…
Reference in a new issue