}
if (m_docEncoding.length() != 0) {
try {
String a = new String("a".getBytes(), m_docEncoding);
} catch (UnsupportedEncodingException e) {
CauseException ce = new CauseException(
"UnsupportedEncodingException while trying to " +
"convert doc encoding: " + m_docEncoding, e);
if (m_excs == null) {
m_excs = new Vector();
}
m_excs.addElement(ce);
//#ifdef DLOGGING
//@ logger.severe(ce.getMessage(), e);
//#endif
System.out.println(ce.getMessage());
// If encoding problem, use the main encoding as it is
// close enough.
if (m_windows) {
if (hasWinEncoding) {
m_docEncoding = winEncoding;
} else {
m_docEncoding = "";
}
} else if (m_utf) {
m_docEncoding = "";
} else {
if (hasIso8859Encoding) {
m_docEncoding = isoEncoding;
} else {
m_docEncoding = "";
}
}
try {
String a = new String("a".getBytes(), m_docEncoding);
} catch (UnsupportedEncodingException e2) {
CauseException ce2 = new CauseException(
"Second unsupportedEncodingException while " +
" trying to convert doc encoding: " +
m_docEncoding, e2);
m_excs.addElement(ce2);
//#ifdef DLOGGING
//@ logger.severe(ce2.getMessage(), e2);
//#endif
System.out.println(ce2.getMessage());
m_docEncoding = "";
}
}
}
m_encodingStreamReader.setModEncoding(modEncoding);