You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2005/06/24 03:32:04 UTC
cvs commit: xml-xerces/java/src/org/apache/xml/serialize Encodings.java
mrglavas 2005/06/23 18:32:04
Modified: java/src/org/apache/xml/serialize Encodings.java
Log:
Fixing JIRA Issue #1073:
http://issues.apache.org/jira/browse/XERCESJ-1073
Adding UTF-16 to the UNICODE_ENCODINGS array. Due to
a change in the EncodingMap we were querying the charset
encoder to check if a character is printable for all characters
higher than 0x7F. This restores the last printable character
value to 0xFFFF.
Revision Changes Path
1.10 +2 -2 xml-xerces/java/src/org/apache/xml/serialize/Encodings.java
Index: Encodings.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xml/serialize/Encodings.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- Encodings.java 24 Feb 2004 23:34:03 -0000 1.9
+++ Encodings.java 24 Jun 2005 01:32:04 -0000 1.10
@@ -47,7 +47,7 @@
static final int LAST_PRINTABLE_UNICODE = 0xffff;
// unicode-compliant encodings; can express plane 0
static final String[] UNICODE_ENCODINGS = {
- "Unicode", "UnicodeBig", "UnicodeLittle", "GB2312", "UTF8",
+ "Unicode", "UnicodeBig", "UnicodeLittle", "GB2312", "UTF8", "UTF-16",
};
// default (Java) encoding if none supplied:
static final String DEFAULT_ENCODING = "UTF8";
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org