请帮我找到这个丢失的字符,又是字符集的问题~?
我上一个帖子询问 在dom4j解析xml时无法正确识别字符引用——&#169,进一步跟踪后发现,该字符定义在 ISO 8859-1 character set中。在中文Windows上运行Java程序时(此时字符集为GBK),编码为169的字符并不存在(GBK中没有这个字符??),显示为问号——?,程序片段如下:
<div class="dp-highlighter"><div class="bar">
[*]System.out.println("int --> char :" + 97 + " --> " + (char) 97); //输出 a
[*]System.out.println("int --> char :" + 169 + " --> " + (char) 169); //输出 ?
页:
[1]