mrglavas 2003/07/18 09:47:22 Modified: java/src/org/apache/xml/serialize Encodings.java Log: Use English locale when converting to upper case, otherwise we might not get the behaviour we expect. In the Turkish locale, letter i (#x69) maps to I with a dot above (#x130). Revision Changes Path 1.8 +3 -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.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- Encodings.java 13 May 2003 13:23:48 -0000 1.7 +++ Encodings.java 18 Jul 2003 16:47:22 -0000 1.8 @@ -61,6 +61,7 @@ import java.io.UnsupportedEncodingException; import java.util.Hashtable; +import java.util.Locale; import org.apache.xerces.util.EncodingMap; @@ -110,7 +111,7 @@ return eInfo; } // need to convert it to upper case: - encoding = encoding.toUpperCase(); + encoding = encoding.toUpperCase(Locale.ENGLISH); String jName = EncodingMap.getIANA2JavaMapping(encoding); if(jName == null) { // see if the encoding passed in is a Java encoding name.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]