For each encoding, the corresponding enumerator is derived from
the alias beginning with “
cs”, as follows
- csUnicode is mapped to text_encoding::id::UCS2,
- csIBBM904 is mapped to text_encoding::id::IBM904, and
- the “cs” prefix is removed from other names.