[wp-trac] [WordPress Trac] #32165: wp-db.php destructs all the multibyte characters

WordPress Trac noreply at wordpress.org
Thu Jul 16 11:28:13 UTC 2015


#32165: wp-db.php destructs all the multibyte characters
--------------------------+-----------------------
 Reporter:  kjmtsh        |       Owner:  pento
     Type:  defect (bug)  |      Status:  reopened
 Priority:  high          |   Milestone:  4.2.3
Component:  Database      |     Version:  4.1.2
 Severity:  blocker       |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-----------------------

Comment (by pento):

 I realised that I was on the right track, but I was missing handling for
 the specific case mentioned in comment:36.

 This particular case has UTF-8 input, `DB_CHARSET` set to `utf8`, but the
 table columns are `ujis`. MySQL can handle the conversion when data is
 inserted, but our sanity checks weren't allowing for this case.

 [attachment:32165.5.diff] also fixes up the couple of tiny things that
 @nbachiyski mentioned, and adds unit tests that fail when the `wp-db.php`
 part of the patch is reverted.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32165#comment:44>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list