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

如何将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);

联系我们

联系我们

0577-28828765

在线咨询: QQ交谈

邮箱: xwei067@foxmail.com

工作时间:周一至周五,9:00-17:30,节假日休息

返回顶部