Skip to content

Commit c265454

Browse files
author
Amin Cheloh
committed
fix charset from utf8 to utf-8
1 parent 523c674 commit c265454

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

AndroidAsync/src/com/koushikdutta/async/http/body/UrlEncodedFormBody.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public void write(AsyncHttpRequest request, final DataSink response, final Compl
5959
public static final String CONTENT_TYPE = "application/x-www-form-urlencoded";
6060
@Override
6161
public String getContentType() {
62-
return CONTENT_TYPE + "; charset=utf8";
62+
return CONTENT_TYPE + "; charset=utf-8";
6363
}
6464

6565
@Override

AndroidAsync/src/com/koushikdutta/async/http/server/AsyncHttpServerResponseImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,13 @@ public void send(String string) {
206206
responseCode(200);
207207
String contentType = mRawHeaders.get("Content-Type");
208208
if (contentType == null)
209-
contentType = "text/html; charset=utf8";
209+
contentType = "text/html; charset=utf-8";
210210
send(contentType, string);
211211
}
212212

213213
@Override
214214
public void send(JSONObject json) {
215-
send("application/json; charset=utf8", json.toString());
215+
send("application/json; charset=utf-8", json.toString());
216216
}
217217

218218
@Override

0 commit comments

Comments
 (0)