The Mozilla
Organization
Our Mission
Who We Are
Getting Involved
Community
Editorials
What's New
Projects
Module Owners
Blue Sky
New Layout
Mail/News
Ports
Other
Source Code
Getting It
Documentation
License Terms
Bugs
Search
Feedback
DevEdge Online


PUBLIC void INTL_CSIInitialize ( INTL_CharSetInfo obj, XP_Bool is_metacharset_reload, char *http_charset, int type, uint16 defaultDocCharSetID )

Initializes the charset info object

Documentation

Initializes the charset info object.
  • If the given is_metacharset_reload argument is FALSE, INTL_CSIReset is called, passing the given charset info object.
  • If the given is_metacharset_reload argument is TRUE, the charset info object's relayout flag is set to METACHARSET_RELAYOUTDONE.
  • Otherwise, if the override charset ID is previously set in this object, it is set in the document charset ID field.
  • Otherwise, if the given HTTP charset is known, it is set in the HTTP charset field.
  • Otherwise, the document charset ID field is set to the given defaultDocCharSetID, unless the type is mail/news, in which case CS_DEFAULT is used. This is because the META charset in mail/news is sometimes wrong.
  • Finally, the window charset ID is set, based on the document charset ID.
Parameters:
obj - Specifies the charset info object
is_metacharset_reload - TRUE if it is currently reloading because the layout code found HTML META charset. FALSE otherwise.
http_charset - Specifies the charset name if it is presented in HTTP Content-Type header
type - Specifies the context type
defaultDocCharSetID - Specifies the default document charset ID.
See Also:

alphabetic index hierarchy of classes


Copyright © 1998 Netscape Communications Corporation

generated by doc++



Copyright © 1998 Netscape Communications Corporation.