StringBuilder content1 = new StringBuilder(); InputStreamReader inputStreamReader = new InputStreamReader(request.getInputStream(), "utf-8"); BufferedReader bufferedReader = new BufferedReader(inputStreamReader); String str = null; while ((str = bufferedReader.readLine()) != null) { content1.append(str); } bufferedReader.close(); inputStreamReader.close();