diff --git a/modules/http/src/retrofit/http/HttpMethodType.java b/modules/http/src/retrofit/http/HttpMethodType.java index 0920e9c0e8..763bce0e3f 100644 --- a/modules/http/src/retrofit/http/HttpMethodType.java +++ b/modules/http/src/retrofit/http/HttpMethodType.java @@ -19,6 +19,7 @@ import org.apache.http.entity.mime.HttpMultipartMode; import org.apache.http.entity.mime.MultipartEntity; import org.apache.http.entity.mime.content.StringBody; +import org.apache.http.protocol.HTTP; import retrofit.io.TypedBytes; /** @@ -135,7 +136,8 @@ private static void addParams(HttpEntityEnclosingRequestBase request, } else { try { List paramList = builder.getParamList(true); - request.setEntity(new UrlEncodedFormEntity(paramList)); + // TODO: Use specified encoding. (See CallbackResponseHandler et al) + request.setEntity(new UrlEncodedFormEntity(paramList, HTTP.UTF_8)); } catch (UnsupportedEncodingException e) { throw new AssertionError(e); }