From 748cf17de6fb039baa6a8e66e60f88115c6aa38b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 7 Oct 2008 22:45:51 +0000 Subject: [PATCH] - sample default charset mysql options to ini file Changed files: php-ini-charsetphpini.patch -> 1.1 --- php-ini-charsetphpini.patch | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 php-ini-charsetphpini.patch diff --git a/php-ini-charsetphpini.patch b/php-ini-charsetphpini.patch new file mode 100644 index 0000000..77536fc --- /dev/null +++ b/php-ini-charsetphpini.patch @@ -0,0 +1,33 @@ +--- php-5.2.4/php.ini~ 2008-09-23 14:06:04.000000000 +0300 ++++ php-5.2.4/php.ini 2008-10-08 01:34:12.575347747 +0300 +@@ -749,6 +749,9 @@ + ; Maximum time (in seconds) for connect timeout. -1 means no limit + mysql.connect_timeout = 60 + ++; The name of the character set to use as the default character set. ++;mysql.connect_charset=utf8 ++ + ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and + ; SQL-Errors will be displayed. + mysql.trace_mode = Off +@@ -768,6 +771,9 @@ + ; MySQL defaults. + mysqli.default_socket = + ++; The name of the character set to use as the default character set. ++;mysqli.connect_charset=utf8 ++ + ; Default host for mysql_connect() (doesn't apply in safe mode). + mysqli.default_host = + +@@ -784,6 +790,10 @@ + ; Allow or prevent reconnect + mysqli.reconnect = Off + ++[pdo_mysql] ++; The name of the character set to use as the default character set. ++;pdo_mysql.connect_charset=utf8 ++ + [mSQL] + ; Allow or prevent persistent links. + msql.allow_persistent = On -- 2.44.0