Date: 23 January 2008

 

Over a year ago I asked the question:

Q) Is it possible to alphabetize to a foreign alphabet (I need cyrillic). Thanks. LFS

 

A) 23 Jan 2008: I replaced line in cookbook DictIndex

  $pletter = substr($item['name'],0,1);

with
 $pletter = preg_replace('#^(?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,0}'.
                       '((?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,1}).*#s',
                       '$1',$item['name']);

 Up one level


Page last modified on December 23, 2008, at 07:02 AM