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 char* INTL_EncodeMimePartIIStr_VarLen ( char * header, int16 wincsid, XP_Bool bUseMime, int encodedWordSize )

Convert and encode text into RFC 1522 header

Documentation

Convert and encode text into RFC 1522 header. Convert the string into the encoding used in internet message and encode them into RFC 1522 form. It will (1) perform the codeset conversion and (2) RFC 1522 encoding algorithm (if bUseMime is true or the internet message encoding is ISO-2022-KR or ISO-2022-JP). It is same as INTL_EncodeMimePartIIStr except it allow encodedWordSize value other than 72.
Returns:
the encoded/converted header. The caller need to free this by calling XP_FREE when the result is no longer needed.
Parameters:
header - Specifies the RFC 1522 string to be encoded.
wincsid - Specifies the source encoding
bUseMime - Specifies apply RFC 1522 rule or not. If the value is true or the internet message encoding is ISO-2022-JP or ISO-2022-KR, then it perform RFC1522 encoding after convert the text into the internet message encoding. Otherwise, it only convert the text into internet message encoding.
encodedWordSize - Specifies the maximum length of encoded word.
See Also:
INTL_DecodeMimePartIIStr
INTL_EncodeMimePartIIStr

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)