Subversion Repositories Programming Utils

Rev

Rev 114 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 114 Rev 115
Line 489... Line 489...
489
        || StringHelper::equalsIgnoreCase(charset, LOG4CXX_STR("UTF-16"), LOG4CXX_STR("utf-16"))) {
489
        || StringHelper::equalsIgnoreCase(charset, LOG4CXX_STR("UTF-16"), LOG4CXX_STR("utf-16"))) {
490
        return new UTF16BECharsetEncoder();
490
        return new UTF16BECharsetEncoder();
491
    } else if (StringHelper::equalsIgnoreCase(charset, LOG4CXX_STR("UTF-16LE"), LOG4CXX_STR("utf-16le"))) {
491
    } else if (StringHelper::equalsIgnoreCase(charset, LOG4CXX_STR("UTF-16LE"), LOG4CXX_STR("utf-16le"))) {
492
        return new UTF16LECharsetEncoder();
492
        return new UTF16LECharsetEncoder();
493
    }
493
    }
494
#if APR_HAS_XLATE || !defined(_WIN32)
-
 
-
 
494
-
 
495
#ifdef LOG4CXX_QT
-
 
496
    //RM5248 not sure what this should be
-
 
497
    return new UTF8CharsetEncoder();
-
 
498
#elif APR_HAS_XLATE || !defined(_WIN32)
495
    return new APRCharsetEncoder(charset);
499
    return new APRCharsetEncoder(charset);
496
#else    
500
#else    
497
    throw IllegalArgumentException(charset);
501
    throw IllegalArgumentException(charset);
498
#endif
502
#endif
499
}
503
}