Export folder patch



Hello,

 Here is my first meaningful patch. It corrects the output of the export
folder patch by specifying the charset. This is important for all people
using non-iso-8859-1 locales.

Please review it. It's an easy one, but it's what I can do (for now).
-- 
JCD

--- f-spot-0.1.10orig/src/FolderExport.cs	2006-02-23 17:27:56.000000000 +0100
+++ f-spot-0.1.10/src/FolderExport.cs	2006-03-20 19:48:10.000000000 +0100
@@ -22,6 +22,7 @@
 using System;
 using System.IO;
 using System.Runtime.InteropServices;
+using System.Text;
 
 using ICSharpCode.SharpZipLib.Checksums;
 using ICSharpCode.SharpZipLib.Zip;
@@ -787,6 +788,10 @@
 		public void WriteHeader (System.Web.UI.HtmlTextWriter writer)
 		{
 			writer.RenderBeginTag ("head");
+			writer.Write ("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=");
+			writer.Write (System.Text.Encoding.Default.WebName);
+			writer.Write ("\" />");
+
 			writer.RenderBeginTag ("title");
 			writer.Write (gallery_name);
 			writer.RenderEndTag ();




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]