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 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-1999 The Mozilla Organization.
Last modified April 17, 1998.