@
abcbuzhiming 你搞错了,这里没有 ’无法被转换成可见字符’ 这个概念,很多字符本来就不可见,而是很多字符序列在指定的编码种是非法的(这和无法显示完全不是一个概念), 至于 Java 怎么处理,其实从每个版本都可能发生变化,但 Java SE 的文档由详细记录
Constructs a new String by decoding the specified array of bytes using the platform's default charset. The length of the new String is a function of the charset, and hence may not be equal to the length of the byte array.
The behavior of this constructor when the given bytes are not valid in the default charset is unspecified. The CharsetDecoder class should be used when more control over the decoding process is required.