changeset 24323:dd155ec42b25

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
author Richard Laager <rlaager@wiktel.com>
date Wed, 12 Nov 2008 02:50:52 +0000
parents 125389813727
children 7493462e6959 95919d444308
files pidgin/gtkconv.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkconv.c	Mon Nov 10 04:40:17 2008 +0000
+++ b/pidgin/gtkconv.c	Wed Nov 12 02:50:52 2008 +0000
@@ -971,7 +971,9 @@
 	}
 
 	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(