如何将windows-1250 / Cp1250中编码的String转换为utf-8?

正如标题所说…… 我从htto响应中读到了内容 InputStream is = response.getEntity().getContent(); String cw = IOUtils.toString(is); byte[] b = cw.getBytes(Cp1250); String x = StringUtils.newStringUtf8(b);

返回顶部