diff --git a/src/main/java/br/com/totalvoice/TotalVoiceClient.java b/src/main/java/br/com/totalvoice/TotalVoiceClient.java index f5c001c..5666781 100644 --- a/src/main/java/br/com/totalvoice/TotalVoiceClient.java +++ b/src/main/java/br/com/totalvoice/TotalVoiceClient.java @@ -49,14 +49,14 @@ public JSONObject get(RequestInterface request) throws Exception { @Override public JSONObject post(RequestInterface request, JSONObject data) throws Exception { HttpPost post = new HttpPost(baseUrl + request.getURL()); - post.setEntity(new StringEntity(data.toString())); + post.setEntity(new StringEntity(data.toString(), "UTF-8")); return execute(post); } @Override public JSONObject put(RequestInterface request, JSONObject data) throws Exception { HttpPut put = new HttpPut(baseUrl + request.getURL()); - put.setEntity(new StringEntity(data.toString())); + put.setEntity(new StringEntity(data.toString(), "UTF-8")); return execute(put); }