Skip to main content

Mozilla

  • About
  • Foundation
  • Contribute
  • Community
  • Developers
  • Projects

  • Roadmap
  • Projects
  • Coding
    • Module Owners
    • Hacking
    • Get the Source
    • Build It
  • Testing
    • Releases
    • Nightly Builds
    • Report A Problem
  • Tools
    • Bugzilla
    • Tinderbox
    • Bonsai
    • LXR
  • FAQs

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++


  • Support Options
  • Security Center
  • Privacy Policy
  • Contact Us

International Affiliates: Mozilla Europe - Mozilla Japan - Mozilla China

Portions of this content are © 1998–2008 by individual mozilla.org contributors
Content available under a Creative Commons license

Last modified April 16, 1998 Document History Edit this Page (or via CVS)