Fix for Issue #222: Android plugin FileUploader with UTF-8 in params

This commit is contained in:
macdonst 2011-09-06 23:23:50 +08:00 committed by brianleroux
parent 9eb02a4882
commit 073f71563c

View File

@ -274,7 +274,7 @@ public class FileTransfer extends Plugin {
dos.writeBytes(LINE_START + BOUNDRY + LINE_END);
dos.writeBytes("Content-Disposition: form-data; name=\"" + key.toString() + "\";");
dos.writeBytes(LINE_END + LINE_END);
dos.writeBytes(params.getString(key.toString()));
dos.write(params.getString(key.toString()).getBytes());
dos.writeBytes(LINE_END);
}
} catch (JSONException e) {