/* Returns NULL if not found, otherwise the original name  */
const char* xmlGetEncodingAlias(const char *alias)
/* Returns NULL if not found, otherwise the original name  */
const char* xmlGetEncodingAlias(const char *alias)
{
        upper[i] = toupper(alias[i]);
	if (upper[i] == 0) break;
    }
    upper[i] = 0;
    for (i = 0;i < xmlCharEncodingAliasesNb;i++) {
	if (!strcmp(xmlCharEncodingAliases[i].alias, upper)) {
	    return(xmlCharEncodingAliases[i].name);
	}
    }
    return(NULL);
}