Wikia code/includes/db/LoadBalancer.php

--- D:\Programming\SVN\mediawiki\branches\REL1_16\phase3\includes\db\LoadBalancer.php	2011-07-18 22:30:57.698242200 +0100
+++ D:\Programming\SVN\wikia\trunk\includes\db\LoadBalancer.php	2011-08-17 15:28:13.519531200 +0100
@@ -657,6 +658,14 @@
 		if ( isset( $server['fakeMaster'] ) ) {
 			$db->setFakeMaster( true );
 		}
+
+		// Wikia - change begin - @author: wladek
+		// allow per-cluster setting for character encoding (only mysql supported)
+		if ( isset( $server['charset'] ) && $db->getType() == 'mysql' ) {
+			$db->query( "SET NAMES'{$server['charset']}';", __METHOD__ );
+		}
+		// Wikia - change end
+
 		return $db;
 	}