locale-charset-match-p

locale-charset-match-p is a compiled Lisp function in `mule-cmds.el'.

(locale-charset-match-p CHARSET1 CHARSET2)

Whether charset names (strings) CHARSET1 and CHARSET2 are equivalent.
Matching is done ignoring case and any hyphens and underscores in the
names. E.g. `ISO_8859-1' and `iso88591' both match `iso-8859-1'.