tempString = v.ToNewUTF8String();
tempString = ToNewUTF8String(v);
static char *SMimeGetStringByID(PRInt32 aMsgId){  char          *tempString = nsnull;	nsresult res = NS_OK;#ifdef XP_MACnsCOMPtr<nsIStringBundle> stringBundle = nsnull;#endif	if (!stringBundle)	{		char*       propertyURL = NULL;		propertyURL = SMIME_PROPERTIES_URL;		nsCOMPtr<nsIStringBundleService> sBundleService = 		         do_GetService(kStringBundleServiceCID, &res); 		if (NS_SUCCEEDED(res) && (nsnull != sBundleService)) 		{			res = sBundleService->CreateBundle(propertyURL, getter_AddRefs(stringBundle));		}	}	if (stringBundle)	{		PRUnichar *ptrv = nsnull;		res = stringBundle->GetStringFromID(aMsgId, &ptrv);		if (NS_FAILED(res))       return nsCRT::strdup("???");		else    {      nsAutoString v;      v.Append(ptrv);	    PR_FREEIF(ptrv);      tempString = v.ToNewUTF8String();    }	}  if (!tempString)    return nsCRT::strdup("???");  else    return tempString;}