我使用以下数据来解码UTF-8编码的字符串。
。输出与输入相同。有什么问题吗?
方法:
public String decodeString(String encodedString) {
return new String(encodedString.getBytes(), "UTF-8");
} 发布于 2016-09-23 11:56:43
使用这个
String s2 = new String(bytes, "UTF-8"); // Charset with which bytes were encoded 如果对你不起作用
String decoded = new String(encoded.getBytes("ISO-8859-1"));https://stackoverflow.com/questions/39660084
复制相似问题