The Mozilla
Organization
At A Glance
Feedback
Get Involved
Newsgroups
License Terms
Newsbot
Developer Docs
Roadmap
Projects
Ports
Module Owners
Hacking
Get the Source
Build It
Testing
Download
Bugzilla
Bug Writing
Tools
View Source
Tree Status
New Checkins
Submit A Bug
FAQ
Search

PUBLIC int16 INTL_DefaultMailCharSetID (int16 csid)

Return the charset used in internet message from a specified charset

Documentation

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 mail message. 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 send out the internet message. 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_DefaultNewsCharSetID 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:
  • CS_ASCII: CS_ASCII
  • CS_LATIN1: CS_LATIN1
  • CS_JIS: CS_JIS
  • CS_SJIS: CS_JIS
  • CS_EUCJP: CS_JIS
  • CS_JIS_AUTO: CS_JIS
  • CS_SJIS_AUTO: CS_JIS
  • CS_EUCJP_AUTO: CS_JIS
  • CS_KSC_8BIT: CS_2022_KR [Note 1]
  • CS_KSC_8BIT_AUTO: CS_2022_KR [Note 1]
  • CS_GB_8BIT: CS_GB_8BIT
  • CS_BIG5: CS_BIG5
  • CS_CNS_8BIT: CS_BIG5
  • CS_MAC_ROMAN: CS_LATIN1
  • CS_LATIN2: CS_LATIN2
  • CS_MAC_CE,: CS_LATIN2
  • CS_CP_1250: CS_LATIN2
  • CS_8859_5: CS_KOI8_R [Note 2]
  • CS_KOI8_R: CS_KOI8_R [Note 2]
  • CS_MAC_CYRILLIC: CS_KOI8_R [Note 2]
  • CS_CP_1251: CS_KOI8_R [Note 2]
  • CS_8859_7: CS_8859_7
  • CS_CP_1253: CS_8859_7
  • CS_MAC_GREEK: CS_8859_7
  • CS_8859_9: CS_8859_9
  • CS_MAC_TURKISH: CS_8859_9
  • CS_UTF8: CS_UTF7
  • CS_UTF7: CS_UTF7
  • CS_UCS2: CS_UTF7
  • CS_UCS2_SWAP: CS_UTF7
Note:
  1. For INTL_DefaultNewsCharSetID, this value is different
  2. 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.
Returns:
the encoding should be send out for the internet mail message.
Parameters:
Specifies - the encoding
See Also:
INTL_DefaultNewsCharSetID

alphabetic index hierarchy of classes


Copyright © 1998 Netscape Communications Corporation

generated by doc++

Copyright © 1998-2000 The Mozilla Organization.
Last modified April 17, 1998.