#99 Adding charachter encoding in http header

Current Release
closed-accepted
nobody
5
2013-06-20
2012-12-25
Gabor
No

I notices in revision 241, that the charachter encoding defined by language is only set in the meta Tag Header. Some HTTP Servers and Browsers use primary the encoding defined in the http Header.

By adding the Following Line, the Header is set.
I don't verify and test yet, but it seems to work for me.

===================================================================
--- scripts/sb_header.php (revision 241)
+++ scripts/sb_header.php (working copy)
@@ -32,6 +32,7 @@
if (isset($_GET['category'])) {
$cat = '?c=' . $_GET['category'];
}
+ header("Content-Type: " . "text/html; charset=". $GLOBALS['lang_string']['html_charset'] ."");
print "<?xml version=\"1.0\" encoding=\"" . $GLOBALS['lang_string']['html_charset'] . "\" ?>\n";

Discussion

  • nabber00

    nabber00 - 2013-06-20
    • status: open --> closed-accepted
    • Group: --> Current Release
     
  • nabber00

    nabber00 - 2013-06-20

    Thanks! This has been added to svn r251.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks