Return the charset used in internet message from a specified charset
Return the charset used in internet message from a specified charset. In the current implementation of Communicator, we assume there is a many to one relationship between a encoding and a encoding used on internet newsgroup posting. This routines is used to get the outgoing encoding for a specified encoding. The caller than can convert the text of the specified encoding to the return encoding and before post the message to the newsgroup. Usually the relationship is the same as the newsgroup posting and this one. However, for some region/country like Korean, it is not the same. In such region/country, they use different encodings in internet mail message and newsgroup posting. In that case INTL_DefaultMailCharSetID should be used instead. Issues: The current model assume the text of a particular encoding is always sending out as one encoding. Such assumption break when people want send out message in different Cyrillic, Chinese, or Unicode encoding. Therefore, we may change this architecture in the near future. The mapping are: ASCII: CS_ASCII LATIN1: CS_LATIN1 JIS: CS_JIS SJIS: CS_JIS EUCJP: CS_JIS JIS_AUTO: CS_JIS SJIS_AUTO: CS_JIS EUCJP_AUTO: CS_JIS KSC_8BIT: CS_KSC_8BIT [Note 1] KSC_8BIT_AUTO: CS_KSC_8BIT [Note 1] GB_8BIT: CS_GB_8BIT BIG5: CS_BIG5 CNS_8BIT: CS_BIG5 MAC_ROMAN: CS_LATIN1 LATIN2: CS_LATIN2 MAC_CE,: CS_LATIN2 CP_1250: CS_LATIN2 8859_5: CS_KOI8_R [Note 2] KOI8_R: CS_KOI8_R [Note 2] MAC_CYRILLIC: CS_KOI8_R [Note 2] CP_1251: CS_KOI8_R [Note 2] 8859_7: CS_8859_7 CP_1253: CS_8859_7 MAC_GREEK: CS_8859_7 8859_9: CS_8859_9 MAC_TURKISH: CS_8859_9 UTF8: CS_UTF7 UTF7: CS_UTF7 UCS2: CS_UTF7 UCS2_SWAP: CS_UTF7 Note: For INTL_DefaultMailCharSetID, this value is different The value is the one specified in preference "intl.mailcharset.cyrillic". The default value is CS_KOI_R. See http://people.netscape.com/ftang/cyrillicmail.html for details.
alphabetic index hierarchy of classes
generated by doc++