正如标题所说...我从 htto 响应中读取内容
InputStream is = response.getEntity().getContent();
String cw = IOUtils.toString(is);
byte[] b = cw.getBytes("Cp1250");
String x = StringUtils.newStringUtf8(b);
String content = new String(b, "UTF-8");
System.out.println(content);
我已经尝试了很多变化。我对用作字符串的正确编码常量有点困惑。windows-1250 或 Cp1250。UTF-8 还是 utf-8 还是 utf8?