First word letter and some letters like: Æ, Ø and others

Author Message

Martynas Bilevičius

Thursday 03 April 2008 1:59:10 pm

Hello, i need get first word letter, i use this function extract_left(1) and cut first letter, but if symbol is like Æ and i cut first letter i have bad value '?' because Æ is made from to symbols and cant get good value. It is another way get first word letter ?

Nicolas Lescure

Thursday 03 April 2008 3:24:11 pm

Yes, it is a real problem. This comes from a bug of some php functions that do not support multibytes strings.
You can check the bug here : http://issues.ez.no/IssueView.php?Id=11481&activeItem=1

We made our own template operator to solve the problem.

Martynas Bilevičius

Saturday 05 April 2008 8:38:26 am

Also is problem then i fetch some node and try sort by Name there is first symbol Æ. It is way sort correctly.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.