From 67ded5bd9383e9427d2b6cae9225fff660ad3cc1 Mon Sep 17 00:00:00 2001 From: Eric Kok Date: Tue, 26 Feb 2013 18:03:06 +0100 Subject: [PATCH] Encode communication with Transmission in UTF-8 to support non-Western characters. --- .../org/transdroid/daemon/Transmission/TransmissionAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/org/transdroid/daemon/Transmission/TransmissionAdapter.java b/lib/src/org/transdroid/daemon/Transmission/TransmissionAdapter.java index f3670cb0..aa4bb4e1 100644 --- a/lib/src/org/transdroid/daemon/Transmission/TransmissionAdapter.java +++ b/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 HttpPost httppost = new HttpPost(buildWebUIUrl()); - StringEntity se = new StringEntity(data.toString()); + StringEntity se = new StringEntity(data.toString(), "UTF-8"); httppost.setEntity(se); // Send the stored session token as a header