attempt to fix national characters coding
attempt to fix national characters coding

file:a/header.php -> file:b/header.php
--- a/header.php
+++ b/header.php
@@ -38,7 +38,7 @@
 }

 

 // Defines the character set for your language/location

-define ("_CHARSET", "UTF-8");

+define ("_CHARSET", "utf-8");

 

 // Prevent possible XSS attacks via $_GET.

 foreach ($_GET as $v) {

@@ -217,6 +217,7 @@
 	$titleinfo = "$sitename :: $penname";

 }

 echo _DOCTYPE."<html><head>";

+echo "<meta charset='utf-8' />";

 if(!isset($titleinfo)) $titleinfo = "$sitename :: $slogan";

 if(isset($metaDesc)) echo "<meta name='description' content='$metaDesc'>";

 echo "<title>$titleinfo</title>";


--- a/includes/corefunctions.php
+++ b/includes/corefunctions.php
@@ -525,7 +525,7 @@
 // Most of the pages that list stories and series use this fuction.  This handles showing the series and stories and pagination of the two together when needed

 function search($storyquery, $countquery, $pagelink = "search.php?", $pagetitle = 0) {

 	global $tpl, $new, $ratingslist, $itemsperpage, $reviewsallowed, $output, $dateformat, $current, $featured, $favorites, $retired, $ageconsent, $classtypelist, $classlist, $offset, $recentdays;

-

+     

 	$count = dbquery($countquery);

 	list($numrows) = dbrow($count);

 	if($numrows) {

@@ -541,9 +541,9 @@
 		$tpl->gotoBlock("listings");

 		$tpl->assign("stories",  "<div class=\"sectionheader\">"._STORIES."</div>");

 		$storyquery .= " LIMIT $offset, $itemsperpage";

-		$result3 = dbquery($storyquery);

-		$count = 0;

-		while($stories = dbassoc($result3)) { 

+		$result3 = dbquery($storyquery);     

+		$count = 0;                     

+		while($stories = dbassoc($result3)) {       

 			$tpl->newBlock("storyblock");

 			include(_BASEDIR."includes/storyblock.php"); 

 		}


--- a/install/install.php
+++ b/install/install.php
@@ -54,7 +54,7 @@
 }

 

 define("_BASEDIR", "../");

-

+define("_CHARSET", "utf-8");

 Header('Cache-Control: private, no-cache, must-revalidate, max_age=0, post-check=0, pre-check=0');

 header ("Pragma: no-cache"); 

 header ("Expires: 0");