Skip to content

Commit baca1fc

Browse files
committed
Merge pull request android-async-http#57 from ajlyon/master
Set default charset to UTF-8 in AsyncHttpResponseHandler
2 parents c40ade9 + c1dfa29 commit baca1fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/loopj/android/http/AsyncHttpResponseHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ void sendResponseMessage(HttpResponse response) {
211211
HttpEntity temp = response.getEntity();
212212
if(temp != null) {
213213
entity = new BufferedHttpEntity(temp);
214-
responseBody = EntityUtils.toString(entity);
214+
responseBody = EntityUtils.toString(entity, "UTF-8");
215215
}
216216
} catch(IOException e) {
217217
sendFailureMessage(e, null);

0 commit comments

Comments
 (0)