Java 中将字符串转换为 GBK 编码时,如果在 GBK 编码中不存在映射,就会遇到不可映射字符的问题。 可以尝试使用以下方法替换字符:
import java.nio.charset.Charset; import java.nio.charset.CharsetEncoder;...