Android 与服务器通信的字符集

Android 与服务器通信的字符集,android,Android,我正在尝试连接Android应用程序中的服务器。只需在服务器上发布简单的帖子,但我想使用波兰类型,当我将字符集从UTF-8更改为iso8859-2时,它没有任何帮助。有什么想法吗 DefaultHttpClient httpclient = new DefaultHttpClient(); HttpPost httppostreq = new HttpPost("http://simpleserver"); StringEn

我正在尝试连接Android应用程序中的服务器。只需在服务器上发布简单的帖子,但我想使用波兰类型,当我将字符集从UTF-8更改为iso8859-2时,它没有任何帮助。有什么想法吗

            DefaultHttpClient httpclient = new DefaultHttpClient();
            HttpPost httppostreq = new HttpPost("http://simpleserver");
            StringEntity se = new StringEntity(jsonMessage.toString());
            se.setContentType("application/json;charset=ISO8859-2");
            se.setContentEncoding(new BasicHeader(HTTP.CONTENT_TYPE, "application/json;charset=ISO8859-2"));
            httppostreq.setEntity(se);
            HttpResponse httpresponse = httpclient.execute(httppostreq);

jsonMessage.toString,ISO8859-2?我试过了,没帮上忙。你应该告诉我一些关于你服务器的事情。