[wp-trac] [WordPress Trac] #11669: There's a problem to show one letter, and it cuts taxonomies names

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 10 06:07:50 UTC 2010


#11669: There's a problem to show one letter, and it cuts taxonomies names
-------------------------------+--------------------------------------------
 Reporter:  maorb              |        Owner:  hakre   
     Type:  defect (bug)       |       Status:  reopened
 Priority:  high               |    Milestone:  2.9.1   
Component:  Charset            |      Version:  2.9     
 Severity:  major              |   Resolution:          
 Keywords:  reporter-feedback  |  
-------------------------------+--------------------------------------------

Comment(by hakre):

 I need to correct that, I actually made some tests and the binary
 representation of that "nun" letter is d7 a0 (two byte char). I also
 tested against the /u modifier and it solves the problem.

 {{{
 $source = 'נ';

 echo string_dump($source) . '<br>';
 echo preg_replace( '/\s+/', ' ', $source ) . '<br>';
 echo preg_replace( '/[\r\n\t ]+/', ' ', $source ) . '<br>';
 echo preg_replace( '/\s+/u', ' ', $source ) . '<br>';
 echo $source; // for comparison

 function string_dump($string) {

         $l = strlen( $string );
         $dump = sprintf( '%d:', $l );
         if ( $l )
                 for ( $i = 0; $i < $l; $i++ )
                         $dump .= sprintf( ' %x', ord( $string[$i] ) );

         return $dump;
 }
 }}}

 Output:

 {{{
 2: d7 a0
 �
 נ
 נ
 נ
 }}}

 So the cases are actually connected compared to the binary data. But still
 I get a 404 on browsing the tag.

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


More information about the wp-trac mailing list