Fix for rendering I18N vCards - Bug: 21743 - r: nhotta

This commit is contained in:
rhp%netscape.com 2000-01-25 14:59:09 +00:00
parent 62ec2b5488
commit d0225b3e68

View File

@ -1793,8 +1793,9 @@ WriteLineToStream (MimeObject *obj, const char *line)
charset = PL_strcasestr(obj->content_type, "charset=");
if (!charset)
charset = FindCharacterSet(obj);
if (!charset)
charset = "ISO-8859-1";
if ( (!charset) || ( (charset) && (!nsCRT::strcasecmp(charset, "us-ascii"))) )
charset = nsCRT::strdup("ISO-8859-1");
// convert from the resource charset.
res = INTL_ConvertCharset(charset, "UTF-8", line, nsCRT::strlen(line),