note 72530 added to function.mysql-client-encoding
| From: | roy dot the dot geek+php at gmail dot com | Date: | Tue, 23 Jan 2007 13:37:17 +0000 |
| Subject: | note 72530 added to function.mysql-client-encoding | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-122071@lists.php.net to get a copy of this message | ||
f you think "set names utf8" for each connection is too trouble, you can modify my.cnf of
MySQL to solve the problem forever. In my.cnf, add the line "default-character-set=utf8"
in both [mysqld] and [client] sections:
[client]
default-character-set=utf8
[mysqld]
default-character-set=utf8
The MySQL will use utf8 after you restart it.
----
Server IP: 58.65.236.81
Probable Submitter: 218.103.6.116
----
Manual Page -- http://www.php.net/manual/en/function.mysql-client-encoding.php
Edit -- https://master.php.net/note/edit/72530
Del: integrated -- https://master.php.net/note/delete/72530/integrated
Del: useless -- https://master.php.net/note/delete/72530/useless
Del: bad code -- https://master.php.net/note/delete/72530/bad+code
Del: spam -- https://master.php.net/note/delete/72530/spam
Del: non-english -- https://master.php.net/note/delete/72530/non-english
Del: in docs -- https://master.php.net/note/delete/72530/in+docs
Del: other reasons-- https://master.php.net/note/delete/72530
Reject -- https://master.php.net/note/reject/72530
Search -- https://master.php.net/manage/user-notes.php