1-1-16-2-20 有关 Unicode
发信人: javarookie (JavaRookie), 信区: Java标题: 有关 Unicode
发信站: BBS 水木清华站 (Thu Nov7 17:03:46 2002), 转信
有关 Java 里面的 Unicode
我从 JVMS 里面找到这样一段话:
(http://java.sun.com/docs/books/vmspec/2nd-edition/html/
Concepts.doc.html#25310)2.1 Unicode
Programs written in the Java programming language supported by JDK release
1.1.7 and the Java 2 platform, v1.2 use the Unicode character encoding, vers
ion 2.1, as specified in The Unicode Standard, Version 2.0, ISBN 0-201-48345
-9, and the update information for Version 2.1 of the Unicode Standard avail
able at http://www.unicode.org. Programs written in the Java programming lan
guage used version 2.0.14 of the Unicode Standard in JDK releases 1.1 throug
h 1.1.6 and used version 1.1.5 of the Unicode Standard in JDK release 1.0.
由 JDK 1.1.7 版本和 Java 2 平台支持的 Java 程序设计语言开发的程序使用
Unicode 2.1版本的字符编码。该编码由 Unicode 标准 2.0 ISBN 0-201-48345-9 指定
有关 Unicode2.1 版本的升级信息可以从 http://www.unicode.org网站查阅。
由 JDK 1.1 平台支持的 Java 语言编写的程序使用 Unicode 标准 1.1.6 版本
由 JDK 1.0 平台的 Java 程序使用 Unicode 标准1.1.5版本。
Except for comments,identifiers (§2.2), and the contents of character and
string literals (§2.3), all input elements in a program written in the Java
programming language are formed from only ASCII characters. ASCII (ANSI X3.
4) is the American Standard Code for Information Interchange. The first 128
characters of the Unicode character encoding are the ASCII characters.
除了注释、标识符、字符的内容和字符串(注:这里指的字符串是指
String literals, 例如:String s ="sting";中,就是一个 string literals,
它和使用 new 操作符创建的 String 对象不同)的内容之外,所有程序文本都是由
ASCII 字符组成。Unicode 的前 128 位编码就是 ASCII 字符。?
--
页:
[1]