level 1
px986
楼主
sendMsgParams.append("&receiver=" + receiver);
sendMsgParams.append("&msg=" + new String(content.getBytes("GBK"), "iso8859-1"));
if (sender != null)
sendMsgParams.append("&sender=" + sender);
URL url = new URL("HTTP", Rhost, Rport,
sendMsgParams.toString());
HttpURLConnection httpconn = (HttpURLConnection)url.openConnection();
String ret = httpconn.getHeaderField(3);
szEncodeResult = httpconn.getHeaderField(5);
这段代码的问题,集成的我们的系统是用的UTF-8
2010年12月06日 03点12分
1
sendMsgParams.append("&msg=" + new String(content.getBytes("GBK"), "iso8859-1"));
if (sender != null)
sendMsgParams.append("&sender=" + sender);
URL url = new URL("HTTP", Rhost, Rport,
sendMsgParams.toString());
HttpURLConnection httpconn = (HttpURLConnection)url.openConnection();
String ret = httpconn.getHeaderField(3);
szEncodeResult = httpconn.getHeaderField(5);
这段代码的问题,集成的我们的系统是用的UTF-8