try {
try {
String convStr = new String("a".getBytes(), "Cp1252");
return true;
} catch (UnsupportedEncodingException e) {
CauseException ce = new CauseException(
"hasWinEncoding UnsupportedEncodingException " +
"while trying to convert encoding Cp1252.", e);
if (m_statExcs == null) {
m_statExcs = new Vector();
}
m_statExcs.addElement(ce);
//#ifdef DTEST
System.out.println(ce.getMessage());
//#endif
//#ifdef DLOGGING
Logger logger = Logger.getLogger("EncodingUtil");
logger.severe(ce.getMessage(), e);
//#endif
try {
String convStr2 = new String("a".getBytes(), "WINDOWS-1252");
return true;
} catch (UnsupportedEncodingException e2) {
CauseException ce2 = new CauseException(
"initWinEncoding second " +
"unsupportedEncodingException while " +
" trying to convert encoding WINDOWS-1252.", e2);
m_statExcs.addElement(ce2);
//#ifdef DTEST
System.out.println(ce2.getMessage());
//#endif
//#ifdef DLOGGING
logger.severe(ce2.getMessage(), e2);
//#endif
}
}
} catch (Throwable t) {
//#ifdef DLOGGING