一定要加上
ContentType contentType = ContentType.create(“text/plain”,Charset.forName(“UTF-8”));
然后在addTextBody的时候第三个参数上传上一步创建的contentType
multipartEntityBuilder.addTextBody(key.toString(), mapData.get(key),contentType);
一定要加上
ContentType contentType = ContentType.create(“text/plain”,Charset.forName(“UTF-8”));
然后在addTextBody的时候第三个参数上传上一步创建的contentType
multipartEntityBuilder.addTextBody(key.toString(), mapData.get(key),contentType);