[wp-trac] [WordPress Trac] #32136: strip_invalid_text removes all russian utf8 chars

WordPress Trac noreply at wordpress.org
Tue May 26 19:27:18 UTC 2015


#32136: strip_invalid_text removes all russian utf8 chars
--------------------------+--------------------
 Reporter:  Fahrain       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.2.3
Component:  Database      |     Version:  4.2
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+--------------------

Comment (by Fahrain):

 Replying to [comment:4 pento]:
 > I haven't been able to build a unit test to reproduce this behaviour.
 >
 > Could I get you to try [attachment:32136.diff], and see if that works
 for you?

 sorry for delay.

 I'd upgraded wordpress to current stable version - 4.2.2.
 Then apply this patch and all works just fine! :)

 P.S.: may be this helps:
 my db is utf8, input data and all my custom script files is in
 windows-1251 encoding, so i use

 {{{
   $wpdb->query("SET CHARACTER_SET_CLIENT='cp1251'");
   $wpdb->query("SET CHARACTER_SET_RESULTS='cp1251'");
 }}}
 to correct input/output results before calling wpdb functions.

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


More information about the wp-trac mailing list