status = COM_MimeObject_write(obj, htmlLine, PL_strlen(htmlLine), PR_TRUE);
status = COM_MimeObject_write(obj, htmlLine, nsCRT::strlen(htmlLine), PR_TRUE);
static int WriteLineToStream (MimeObject *obj, const char *line){	int     status = 0;	char    *htmlLine;	int     htmlLen ;  char    *charset = PL_strstr(obj->content_type, "charset=");  char    *converted = NULL;  PRInt32 converted_length;  PRInt32 res;  if (!charset)    charset = "ISO-8859-1";  // convert from the resource charset.   res = INTL_ConvertCharset(charset, "UTF-8", line, PL_strlen(line),                             &converted, &converted_length);  if ( (res != 0) || (converted == NULL) )    converted = (char *)line;  else    converted[converted_length] = '\0';  htmlLen = PL_strlen(converted) + PL_strlen("<DT></DT>") + 1;;	htmlLine = (char *) PR_MALLOC (htmlLen);	if (htmlLine)	{    htmlLine[0] = '\0';    PL_strcat (htmlLine, "<DT>");    PL_strcat (htmlLine, converted);    PL_strcat (htmlLine, "</DT>");    status = COM_MimeObject_write(obj, htmlLine, PL_strlen(htmlLine), PR_TRUE);    PR_Free ((void*) htmlLine);	}	else		status = VCARD_OUT_OF_MEMORY;  if (converted != line)    PR_FREEIF(converted);	return status;}