We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f77b0fe commit 9184c7cCopy full SHA for 9184c7c
lib/Skeleton/Database/Config.php
@@ -50,4 +50,12 @@ class Config {
50
* @var boolean $auto_null
51
*/
52
public static $auto_null = false;
53
+
54
+ /**
55
+ * Define the client character set.
56
+ *
57
+ * @access public
58
+ * @var string $charset
59
+ */
60
+ public static $charset = 'utf8';
61
}
lib/Skeleton/Database/Driver/Mysqli/Proxy.php
@@ -82,7 +82,7 @@ public function connect() {
82
throw new \Exception('Could not connect to database: ' . $this->database->connect_error);
83
84
85
- $this->database->set_charset('utf8');
+ $this->database->set_charset(\Skeleton\Database\Config::$charset);
86
$this->connected = true;
87
88
0 commit comments