pidgin: 78ed36cc: When you choose Save As from the Convers...

rlaager at pidgin.im rlaager at pidgin.im
Tue Nov 11 21:55:27 EST 2008


-----------------------------------------------------------------
Revision: 78ed36cc0ce73adfd57f03aa3a1086bb22c53773
Ancestor: 41aaf584a583a4438033063545b99ca0691a803d
Author: rlaager at pidgin.im
Date: 2008-11-12T02:50:52
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/78ed36cc0ce73adfd57f03aa3a1086bb22c53773

Modified files:
        pidgin/gtkconv.c

ChangeLog: 

When you choose Save As from the Conversation menu in Pidgin, the saved file
now includes a content-type meta tag so that browsers will treat it as UTF-8
and not ISO-8859-1, to which many of them default.
Fixes #7510

-------------- next part --------------
============================================================
--- pidgin/gtkconv.c	87efe1815b4d8e1c331a95ed086c5c2604ced7ab
+++ pidgin/gtkconv.c	8d8e93dd5b09f0da539c88a2afc810a7dcb93389
@@ -971,7 +971,9 @@ savelog_writefile_cb(void *user_data, co
 	}
 
 	name = purple_conversation_get_name(conv);
-	fprintf(fp, "<html>\n<head><title>%s</title></head>\n<body>", name);
+	fprintf(fp, "<html>\n<head>\n");
+	fprintf(fp, "<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n");
+	fprintf(fp, "<title>%s</title>\n</head>\n<body>\n", name);
 	fprintf(fp, _("<h1>Conversation with %s</h1>\n"), name);
 
 	lines = gtk_imhtml_get_markup_lines(


More information about the Commits mailing list