charset
void SetEncoding(mail_encoding encoding, int32 charset);
uint32 charset; // This character set is used for encoding, not decoding.
uint32 charset = B_MAIL_NULL_CONVERSION,
uint32 charset = B_MAIL_NULL_CONVERSION,
uint32 charset = B_MAIL_NULL_CONVERSION,
uint32 charset = B_MAIL_NULL_CONVERSION,
uint32 charset = B_MAIL_NULL_CONVERSION,
uint32 charset = B_MAIL_NULL_CONVERSION,
int32 charset;
char charset[64];
char charset[64];
ssize_t utf8_to_rfc2047(char **bufp, ssize_t length,uint32 charset, char encoding);
status_t GetNextCharacterSet(BCharacterSet * charset);
textHeader.charset = B_UNICODE_UTF8;
|| txtheader.charset != B_UNICODE_UTF8)
ptxtheader->charset = txtheader.charset;
txtheader.charset = B_UNICODE_UTF8;
TTextView::AddAsContent(BEmailMessage *mail, bool wrap, uint32 charset, mail_encoding encoding)
body->SetEncoding(encoding, charset);
void AddAsContent(BEmailMessage *mail, bool wrap, uint32 charset, mail_encoding encoding);
BCharacterSet charset;
while (roster.GetNextCharacterSet(&charset) == B_NO_ERROR) {
BString name(charset.GetPrintName());
const char* mime = charset.GetMIMEName();
convert_id = charset.GetConversionID();
if ( hs->charset != (char*) 0 )
free( (void*) hs->charset );
unsigned short port, char* cgi_pattern, int cgi_limit, char* charset,
hs->charset = strdup( charset );
fixed_type, sizeof(fixed_type), type, hc->hs->charset );
unsigned short port, char* cgi_pattern, int cgi_limit, char* charset,
char* charset;
const BCharacterSet* charset
= charset != NULL ? charset->GetPrintName() : "";
BCharacterSet charset;
while (roster.GetNextCharacterSet(&charset) == B_NO_ERROR) {
if (charset.GetFontID() == B_UNICODE_UTF8)
name = charset.GetPrintName();
const char* mime = charset.GetMIMEName();
if (charset.GetFontID() == fOpenAsEncoding)
const BCharacterSet* charset
if (charset != NULL)
forceEncoding = charset->GetName();
if (charset != NULL) {
uint32 id = charset->GetConversionID();
BCharacterSet charset;
while (roster.GetNextCharacterSet(&charset) == B_OK) {
const char* mime = charset.GetMIMEName();
BString name(charset.GetPrintName());
message->AddString("encoding", charset.GetName());
if (encoding.Compare(charset.GetName()) == 0)
const BCharacterSet* charset
if (charset != NULL && encodingMenu != NULL) {
const char* mime = charset->GetMIMEName();
BString name(charset->GetPrintName());
BCharacterSet charset;
while (roster.GetNextCharacterSet(&charset) == B_NO_ERROR) {
BString name(charset.GetPrintName());
const char* mime = charset.GetMIMEName();
if (charset.GetFontID() == fTextView->GetEncoding())
const BPrivate::BCharacterSet* charset
if (charset == NULL)
int code = charset->GetConversionID();
const BCharacterSet* charset
fEncodingName = charset ? charset->GetName() : "UTF-8";
const BCharacterSet* charset
if (charset != NULL)
view->SetEncoding(charset->GetConversionID());
const BCharacterSet* charset
if (charset != NULL) {
BString name(charset->GetPrintName());
const char* mime = charset->GetMIMEName();
BCharacterSet charset;
while (roster.GetNextCharacterSet(&charset) == B_OK) {
const char* mime = charset.GetMIMEName();
encoding = charset.GetConversionID();
BString name(charset.GetPrintName());
BUF_PUSH (*p == '^' ? charset_not : charset);
case charset:
case charset:
else if ((re_opcode_t) p1[3] == charset
case charset:
uint32 charset, mail_encoding encoding, bool replace_existing)
if (charset != B_MAIL_NULL_CONVERSION
&& headers.ReplaceInt32 (kHeaderCharsetString, charset) != B_OK)
headers.AddInt32(kHeaderCharsetString, charset);
int32 charset = B_MAIL_NULL_CONVERSION;
structure->FindInt32(kHeaderCharsetString, &charset);
SetHeaderField(key, value.String(), (uint32) charset, (mail_encoding) encoding);
const char* charset;
int32 charset = B_ISO15_CONVERSION;
headers.FindInt32(kHeaderCharsetString, &charset);
charset, encoding));
charset(B_ISO15_CONVERSION),
BTextMailComponent::SetEncoding(mail_encoding encoding, int32 charset)
this->charset = charset;
charset = _charSetForTextDecoding;
if (charset == B_MAIL_NULL_CONVERSION && content_type.HasString("charset")) {
charset = B_MAIL_US_ASCII_CONVERSION;
charset = B_MAIL_UTF8_CONVERSION;
charset = cs->GetConversionID();
if (charset == B_MAIL_NULL_CONVERSION) {
charset = B_JIS_CONVERSION;
charset = B_ISO15_CONVERSION;
mail_convert_to_utf8(charset, decoded.String(), &bytes, string,
for (uint32 i = 0; mail_charsets[i].charset != NULL; i++) {
if (mail_charsets[i].flavor == charset) {
content_type << "; charset=\"" << mail_charsets[i].charset << "\"";
mail_convert_from_utf8(charset, this->text.String(), &len, raw,
BEmailMessage::SetSubject(const char* subject, uint32 charset,
SetHeaderField("Subject", subject, charset, encoding);
BEmailMessage::SetReplyTo(const char* replyTo, uint32 charset,
SetHeaderField("Reply-To", replyTo, charset, encoding);
BEmailMessage::SetFrom(const char* from, uint32 charset, mail_encoding encoding)
SetHeaderField("From", from, charset, encoding);
BEmailMessage::SetTo(const char* to, uint32 charset, mail_encoding encoding)
SetHeaderField("To", to, charset, encoding);
BEmailMessage::SetCC(const char* cc, uint32 charset, mail_encoding encoding)
SetHeaderField("Cc", cc, charset, encoding);
const char *charset;
for (int32 i = 0; mail_charsets[i].charset != NULL; i++) {
if (strcasecmp(encoding,mail_charsets[i].charset) == 0) {
const char *charset;
char *charset, *encoding, *end;
((charset = strstr(tail, "=?")) != NULL)
&& (((encoding = strchr(charset + 2, '?')) != NULL)
for (int i = 0; i < charset-tail; i++) {
if (string != tail && tail != charset)
memmove(string, tail, charset-tail);
string += charset-tail;
tail = charset;
charset += 2;
size_t cLen = encoding - 1 - charset;
memcpy(charsetName, charset, cLen);
utf8_to_rfc2047 (char **bufp, ssize_t length, uint32 charset, char encoding)
void ConvertWordToCharset (uint32 charset) {
mail_convert_from_utf8 (charset, originalWord.String(),
currentWord->ConvertWordToCharset (charset);
currentWord->ConvertWordToCharset (charset);
for (int32 i = 0; mail_charsets[i].charset != NULL; i++) {
if (mail_charsets[i].flavor == charset) {
charset_dec = mail_charsets[i].charset;
currentWord->ConvertWordToCharset (charset);
BString charset;
charset = parameter;
if (charset.Length() > 0)
mimeType << ";" << charset;
BCharacterSetRoster::GetNextCharacterSet(BCharacterSet * charset)
if (charset == 0) {
*charset = *character_sets_by_id[index++];
const BCharacterSet * charset = character_sets_by_id[index2];
character_sets_by_MIBenum[charset->GetMIBenum()] = charset;
const BCharacterSet* charset = BCharacterSetRoster::GetCharacterSetByConversionID(
if (charset == NULL)
fprintf(stderr, "convert_to_utf8(%s) : \"", charset->GetName());
return convert_encoding(charset->GetName(), "UTF-8", src, srcLen,
const BCharacterSet* charset = BCharacterSetRoster::GetCharacterSetByConversionID(
if (charset == NULL)
fprintf(stderr, "convert_from_utf8(%s) : \"", charset->GetName());
return convert_encoding("UTF-8", charset->GetName(), src, srcLen,
swap_data(B_INT32_TYPE, &textHeader.charset, sizeof(int32), B_SWAP_BENDIAN_TO_HOST);
if (textHeader.header.magic != 'TEXT' || textHeader.charset != B_UNICODE_UTF8)
txt_header.charset = B_UNICODE_UTF8;
if (swap_data(B_INT32_TYPE, &txt_header.charset, sizeof(int32),
if (strcmp(tlsValue->charset, fGivenCharset) == 0) {
strlcpy(tlsValue->charset, fGivenCharset, sizeof(tlsValue->charset));
if (strcmp(mbState->charset, fGivenCharset) == 0
strlcpy(mbState->charset, fGivenCharset, sizeof(mbState->charset));
charset[0] = '\0';
char charset[64];
static_cast<int>(txtheader.charset));
if (txtheader.charset == B_UNICODE_UTF8)