[wp-trac] [WordPress Trac] #32051: Creating new posts/terms with non-English characters is broken for tables with cp1251 collation in 4.1.2

WordPress Trac noreply at wordpress.org
Wed Apr 22 13:44:50 UTC 2015


#32051: Creating new posts/terms with non-English characters is broken for tables
with cp1251 collation in 4.1.2
--------------------------+-----------------------
 Reporter:  vloo          |       Owner:  pento
     Type:  defect (bug)  |      Status:  accepted
 Priority:  high          |   Milestone:  4.2
Component:  Database      |     Version:  4.1.2
 Severity:  critical      |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------

Comment (by nbachiyski):

 For me, `array_search( 'CP1251', mb_list_encodings() );` returns `false`
 (PHP 5.4.39). The canonical `mb_` encoding name is `Windows-1251`. Even
 though `mb_convert_encoding( 'baba', 'CP1251', 'CP1251' );` works
 properly, our support-encoding checks will be bypassed, so we should use
 the canonical name.

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


More information about the wp-trac mailing list