ret = (char *)s->canon;
}
- /* Just fucking stupid */
+ /* Try different aliases */
cset = ucnv_getCanonicalName (ret, "MIME", &uc_err);
if (cset == NULL) {
if (cset == NULL) {
uc_err = U_ZERO_ERROR;
- cset = ucnv_getCanonicalName (ret, "WINDOWS", &uc_err);
+ cset = ucnv_getCanonicalName (ret, "", &uc_err);
}
if (cset == NULL) {
uc_err = U_ZERO_ERROR;
- cset = ucnv_getCanonicalName (ret, "JAVA", &uc_err);
+ cset = ucnv_getAlias (ret, 0, &uc_err);
}
return cset;
return NULL;
}
- msg_info_pool ("converted from %s to UTF-8 inlen: %z, outlen: %d",
+ msg_debug_pool ("converted from %s to UTF-8 inlen: %z, outlen: %d",
in_enc, len, r);
g_free (tmp_buf);