From: <abe...@us...> - 2013-07-29 19:19:54
|
Revision: 6156 http://sourceforge.net/p/astlinux/code/6156 Author: abelbeck Date: 2013-07-29 19:19:51 +0000 (Mon, 29 Jul 2013) Log Message: ----------- web interface, Use charset encoding 'utf-8' instead of 'iso-8859-1' for all tabs. Thanks Michael Modified Paths: -------------- branches/1.0/package/webinterface/altweb/common/header.php branches/1.0/package/webinterface/altweb/info.php Modified: branches/1.0/package/webinterface/altweb/common/header.php =================================================================== --- branches/1.0/package/webinterface/altweb/common/header.php 2013-07-25 22:26:36 UTC (rev 6155) +++ branches/1.0/package/webinterface/altweb/common/header.php 2013-07-29 19:19:51 UTC (rev 6156) @@ -1,6 +1,6 @@ <?php session_manual_gc(); -// Copyright (C) 2008-2012 Lonnie Abelbeck +// Copyright (C) 2008-2013 Lonnie Abelbeck // This is free software, licensed under the GNU General Public License // version 3 as published by the Free Software Foundation; you can // redistribute it and/or modify it under the terms of the GNU @@ -10,6 +10,7 @@ // 03-25-2008 // 07-20-2009, Add manual session garbage collection // 03-04-2011, Add custom tab support +// 07-29-2013, Use charset 'utf-8' instead of 'iso-8859-1' // Function: getCUSTOMtabs // @@ -123,12 +124,15 @@ putHtml('</body>'); putHtml('</html>'); } + +header('Content-Type: text/html; charset=utf-8'); + ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> -<!-- Copyright (C) 2008-2012 Lonnie Abelbeck --> -<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> +<!-- Copyright (C) 2008-2013 Lonnie Abelbeck --> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate" /> <meta http-equiv="Expires" content="0" /> <?php Modified: branches/1.0/package/webinterface/altweb/info.php =================================================================== --- branches/1.0/package/webinterface/altweb/info.php 2013-07-25 22:26:36 UTC (rev 6155) +++ branches/1.0/package/webinterface/altweb/info.php 2013-07-29 19:19:51 UTC (rev 6156) @@ -33,7 +33,7 @@ $tmpfile = tempnam("/tmp", "PHP_"); @exec('sed -n "/^\[\['.$topic.'\]\]/,/^\[\[/ p" '.$ifile.' | sed "/^\[\[/ d" >'.$tmpfile); -header('Content-Type: text/plain; charset=iso-8859-1'); +header('Content-Type: text/plain; charset=utf-8'); header('Content-Disposition: inline; filename="'.$topic.'.txt"'); header('Content-Transfer-Encoding: binary'); header('Content-Length: '.filesize($tmpfile)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |