Set the charset for proper decoding

This commit is contained in:
costin
2010-09-25 00:06:06 +00:00
parent c5fa67287d
commit f987d1a833

View File

@@ -149,7 +149,7 @@ public class C2DMessaging {
conn.setDoOutput(true);
conn.setUseCaches(false);
conn.setRequestMethod("POST");
conn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
conn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded;charset=UTF-8");
conn.setRequestProperty("Content-Length", Integer.toString(postData.length));
String authToken = serverConfig.getToken();
conn.setRequestProperty("Authorization", "GoogleLogin auth=" + authToken);