[wp-trac] [WordPress Trac] #11175: wp_check_invalid_utf8() should drop invalid utf-8 chars only instead of truncating string

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 10 03:10:48 UTC 2010


#11175: wp_check_invalid_utf8() should drop invalid utf-8 chars only instead of
truncating string
--------------------------+-------------------------------------------------
 Reporter:  sirzooro      |       Owner:  hakre                            
     Type:  defect (bug)  |      Status:  new                              
 Priority:  normal        |   Milestone:  3.0                              
Component:  Charset       |     Version:  2.9                              
 Severity:  normal        |    Keywords:  has-patch tested needs-unit-tests
--------------------------+-------------------------------------------------

Comment(by hakre):

 Since nor mb_string not iconv are non-default, I think there should be a
 fallback regex as well (I should be able to provide one w/o the /u
 modifier). So the function savely behaves on all installs.

 To select which function to prefer, a shootout between all options should
 be run to checkout which one of those performs fastest.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11175#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list