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 char* INTL_DecodeMimePartIIStr ( const char *header, int16 wincsid, XP_Bool dontConvert )

Decode and convert message header

Documentation

Decode and convert message header. If the message header contains an RFC 2047 encoded-word, that word is decoded. Then it performs charset conversion if the dontConvert parameter is false. Otherwise, it will only decode the string and return. The conversion may happen later in the process. The flag is needed to work around a double conversion problem.
Returns:
Decoded and/or converted message header. If the return value is different from the input buffer, the caller must free the output buffer by calling XP_FREE when it is no longer needed.
Parameters:
header - Specifies the message string to be decoded/converted.
wincsid - Specifies the target window charset ID.
dontConvert - Specifies whether to convert the string into the wincsid or not. If the value is true, then it will only decode any RFC 2047 encoded-words, without converting their charsets. If the value is false, then it will decode RFC 2047 encoded-words AND convert them into the specified wincsid.
See Also:
INTL_DECODE_MIME_PART_II
INTL_EncodeMimePartIIStr
INTL_EncodeMimePartIIStr_VarLen

alphabetic index hierarchy of classes


Copyright © 1998 Netscape Communications Corporation

generated by doc++

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