摘要: HTML5的标题HTML5的内容!Hello我是用记事本写的,保存后在网页上运行竟然出现了乱码。换成GB2312能正确显示中文。HTML5的标题HTML5的内容!Hello但是毕竟标准不一样。还是要用Utf-8。最后发现代码没有一点问题,问题就出记事本身上。 只是告诉浏览器要用utf-8来解释,而文... 阅读全文
posted @ 2014-10-12 18:54 wuhn 阅读(534) 评论(0) 推荐(0) 编辑
摘要: java跟python类似的做法,在java中字符串的编码是java修改过的一种Unicode编码,所以看到java中的字符串,心理要默念这个东西是java修改过的一种Unicode编码的编码。package string;import java.nio.charset.Charset;public... 阅读全文
posted @ 2014-10-12 18:30 wuhn 阅读(28709) 评论(0) 推荐(0) 编辑
摘要: In order to check XML data for validity we have to prepare its schema XSD-file. This file will be loaded by a JAXP package to a Schema objects instanc... 阅读全文
posted @ 2014-10-12 17:57 wuhn 阅读(282) 评论(0) 推荐(0) 编辑
摘要: The SAX and DOM APIs are defined by the XML-DEV group and by the W3C, respectively. The libraries that define those APIs are as follows:javax.xml.pars... 阅读全文
posted @ 2014-10-12 17:50 wuhn 阅读(122) 评论(0) 推荐(0) 编辑
摘要: The Java API for XML Processing (JAXP) is for processing XML data using applications written in the Java programming language. JAXP leverages the pars... 阅读全文
posted @ 2014-10-12 17:43 wuhn 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Configure Java APIs (SAX, DOM, dom4j, XOM) using JAXP 1.3 to validate XML Documents with DTD and Schema(s).Many Java XML APIs provide mechanisms to va... 阅读全文
posted @ 2014-10-12 15:30 wuhn 阅读(333) 评论(0) 推荐(1) 编辑
摘要: JSONJavaScript Object Notation (JSON) is an open, human and machine-readable standard that facilitates data interchange, and along with XML is the mai... 阅读全文
posted @ 2014-10-12 12:13 wuhn 阅读(665) 评论(0) 推荐(0) 编辑