s = g_hash_table_lookup (sub_hash, ret);
if (s) {
- return ucnv_getStandardName (s->canon, "IANA", &uc_err);
+ return ucnv_getCanonicalName (s->canon, "MIME", &uc_err);
}
/* Just fucking stupid */
- cset = ucnv_getStandardName (ret, "IANA", &uc_err);
+ cset = ucnv_getCanonicalName (ret, "MIME", &uc_err);
if (cset == NULL) {
uc_err = U_ZERO_ERROR;
- cset = ucnv_getStandardName (ret, "MIME", &uc_err);
+ cset = ucnv_getCanonicalName (ret, "IANA", &uc_err);
}
if (cset == NULL) {
uc_err = U_ZERO_ERROR;
- cset = ucnv_getStandardName (ret, "WINDOWS", &uc_err);
+ cset = ucnv_getCanonicalName (ret, "WINDOWS", &uc_err);
}
if (cset == NULL) {
uc_err = U_ZERO_ERROR;
- cset = ucnv_getStandardName (ret, "JAVA", &uc_err);
+ cset = ucnv_getCanonicalName (ret, "JAVA", &uc_err);
}
return cset;