Adding missing charset utf-8 specification to blob display.
Adding missing charset utf-8 specification to blob display.

(Since the text/plain case in the statement is hardcoded to utf-8 I'm assuming the mime type case should also be hardcoded to utf-8.)

Signed-off-by: Chris Han <xiphux@gmail.com>

--- a/include/controller/Controller_Blob.class.php
+++ b/include/controller/Controller_Blob.class.php
@@ -94,7 +94,7 @@
 				}
 
 				if ($mime)
-					$headers[] = "Content-type: " . $mime;
+					$headers[] = "Content-type: $mime; charset=UTF-8";
 				else
 					$headers[] = "Content-type: text/plain; charset=UTF-8";
 

comments