sboag 00/12/08 19:48:14
Modified: java/src/org/apache/xalan/serialize Encodings.java
Log:
Set the encoding default if file.encoding is not available to be UTF8.
Revision Changes Path
1.3 +2 -2
xml-xalan/java/src/org/apache/xalan/serialize/Encodings.java
Index: Encodings.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/serialize/Encodings.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Encodings.java 2000/12/06 05:37:08 1.2
+++ Encodings.java 2000/12/09 03:48:14 1.3
@@ -67,7 +67,7 @@
* to override encoding names and provide the last printable character
* for each encoding.
*
- * @version $Revision: 1.2 $ $Date: 2000/12/06 05:37:08 $
+ * @version $Revision: 1.3 $ $Date: 2000/12/09 03:48:14 $
* @author <a href="mailto:[EMAIL PROTECTED]">Assaf Arkin</a>
*/
public class Encodings extends Object
@@ -172,7 +172,7 @@
// Get the default system character encoding. This may be
// incorrect if they passed in a writer, but right now there
// seems to be no way to get the encoding from a writer.
- encoding = System.getProperty("file.encoding");
+ encoding = System.getProperty("file.encoding", "UTF8");
if (null != encoding)
{