Browse Source

Encode communication with Transmission in UTF-8 to support non-Western characters.

pull/11/head
Eric Kok 12 years ago
parent
commit
67ded5bd93
  1. 2
      lib/src/org/transdroid/daemon/Transmission/TransmissionAdapter.java

2
lib/src/org/transdroid/daemon/Transmission/TransmissionAdapter.java

@ -387,7 +387,7 @@ public class TransmissionAdapter implements IDaemonAdapter {
// Setup request using POST stream with URL and data // Setup request using POST stream with URL and data
HttpPost httppost = new HttpPost(buildWebUIUrl()); HttpPost httppost = new HttpPost(buildWebUIUrl());
StringEntity se = new StringEntity(data.toString()); StringEntity se = new StringEntity(data.toString(), "UTF-8");
httppost.setEntity(se); httppost.setEntity(se);
// Send the stored session token as a header // Send the stored session token as a header

Loading…
Cancel
Save