OutputStream writers = connection.getOutputStream(); // You must use Writer to pass Chinese Writer writer = new OutputStreamWriter(writers,"utf-8"); writer.write(param); writer.flush(); writer.close();
Summary of errors when using HttpsURLConnection to transfer Chinese in java
When passing Chinese, you need to use Writer instead of OutputStream
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326450027&siteId=291194637
Recommended
Ranking