[wp-trac] [WordPress Trac] #21212: MySQL tables should use utf8mb4 character set
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 18 06:57:57 UTC 2012
#21212: MySQL tables should use utf8mb4 character set
-------------------------+------------------------------
Reporter: pento | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version: 3.4.1
Severity: minor | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
Comment (by pento):
New patch implements this functionality in $wpdb instead. It's in
wpdb::set_charset() instead of wpdb::init_charset() because
mysql_get_server_info() needs to happen after the connection is opened.
This shouldn't affect existing installs - if they have MySQL < 5.5.3, the
code won't be run. If they have MySQL >= 5.5.3, my testing shows that
feeding a utf8mb4 string into a utf8 column has the same behaviour as it
always did - replacing 4 byte characters with a placeholder.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21212#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list