diff --git a/src/share/classes/java/nio/charset/Charset.java b/src/share/classes/java/nio/charset/Charset.java index 4c166d519a2747293f36de1347d401642c3fb134..455c5f301275ca24a343c56252bc6925be24df2c 100644 --- a/src/share/classes/java/nio/charset/Charset.java +++ b/src/share/classes/java/nio/charset/Charset.java @@ -188,21 +188,22 @@ import sun.security.action.GetPropertyAction; *
When decoding, the UTF-16BE and UTF-16LE - * charsets ignore byte-order marks; when encoding, they do not write + * charsets interpret the initial byte-order marks as a ZERO-WIDTH + * NON-BREAKING SPACE; when encoding, they do not write * byte-order marks.
When decoding, the UTF-16 charset interprets a byte-order - * mark to indicate the byte order of the stream but defaults to big-endian - * if there is no byte-order mark; when encoding, it uses big-endian byte - * order and writes a big-endian byte-order mark.
When decoding, the UTF-16 charset interprets the + * byte-order mark at the beginning of the input stream to indicate the + * byte-order of the stream but defaults to big-endian if there is no + * byte-order mark; when encoding, it uses big-endian byte order and writes + * a big-endian byte-order mark.
Every instance of the Java virtual machine has a default charset, which * may or may not be one of the standard charsets. The default charset is