Permalink
Browse files

properly upload utf8 characters

  • Loading branch information...
1 parent fe95e64 commit 14fdb3c3a4300e6ed7d4e1bb2ce1a25664126b5b @maxogden committed Jun 2, 2011
@@ -143,7 +143,7 @@ public void doGet(HttpServletRequest request, HttpServletResponse response) thro
String jsondata = bulkwrapper.toString();
DefaultHttpClient httpclient = new DefaultHttpClient();
HttpPost httpost = new HttpPost(request.getParameter("url"));
- StringEntity se = new StringEntity(jsondata);
+ StringEntity se = new StringEntity(jsondata, "UTF-8");
httpost.setEntity(se);
httpost.setHeader("Accept", "application/json");
httpost.setHeader("Content-type", "application/json");

0 comments on commit 14fdb3c

Please sign in to comment.