Index: /lib/wpsg_header.class.php
===================================================================
--- /lib/wpsg_header.class.php	(revision 7170)
+++ /lib/wpsg_header.class.php	(revision 7171)
@@ -3,21 +3,23 @@
 	class wpsg_header
 	{
-		
-		public static function startDownloadContent($filename, $content)
-		{
-			
-			header('Content-Description: File Transfer');
-			header('Content-Type: application/octet-stream');
-			header('Content-Disposition: attachment; filename='.$filename);
-			header('Content-Transfer-Encoding: binary');
-			header('Connection: Keep-Alive');
-			header('Expires: 0');
-			header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
-			header('Pragma: public');
-			header('Content-Length: '.strlen($content));
-			
-			die($content);
-			
-		} // public static function startDownload($filename)
+
+        public static function startDownloadContent($filename, $content)
+        {
+
+            header('Content-Description: File Transfer');
+            header('Content-Type: application/octet-stream');
+            header('Content-Disposition: attachment; filename='.$filename);
+            header('Connection: Keep-Alive');
+            header('Expires: 0');
+            header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
+            header('Pragma: public');
+
+            // Bei Download von Textdateien (Profil.json) wurde die falsche LÃ€nge ÃŒbergeben und der Download damit abgeschnitten ??
+            //header('Content-Length: '.mb_strlen($content));
+
+            echo $content;
+            exit;
+
+        } // public static function startDownload($filename)
 		
         public function IMG($file) {
