[wp-trac] [WordPress Trac] #34585: Updating via $wpdb->update fails when using Chinese Characters, depending on the characters postion in the string

WordPress Trac noreply at wordpress.org
Thu Nov 5 11:04:16 UTC 2015


#34585: Updating via $wpdb->update fails when using Chinese Characters, depending
on the characters postion in the string
--------------------------+------------------------------
 Reporter:  while1        |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Database      |     Version:  4.3.1
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by while1):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 I cleared up the problem - it was my own fault and is not related to the
 WP-Core-DB Layer. Sorry for that.

 I also updated a second field with the same query, with a substringed an
 striptagged version of the long string. i used a substr and not mb_substr
 in this case to shorten the string - leading to toxic UTF-8 multibyte
 Characters in the query which then should fail.

 Sorry for using up your time i am happy that there is no bug inside the
 WP-Core.
 Thanks for your time, i really enjoy using your software.

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


More information about the wp-trac mailing list