Bug in text-truncate()?

2008-12-09 Thread Günther Theilen
Hi, I have a problem with truncate() and German umlauts (äöü). (The DB and the php code is in utf-8) $test = xäx; debug ($text-truncate($test, 9)); I would expect it to return xä... but it returns x?... Bug or feature? Regards Guenther

Re: Bug in text-truncate()?

2008-12-09 Thread grigri
Check your core version. TextHelper was updated to use mb_* functions in #7842. I checked with your specific example and it works fine. https://trac.cakephp.org/changeset/7842/branches/1.2.x.x/cake/libs/view/helpers/text.php If you can't upgrade you can try turning on function overloading: add

Re: Bug in text-truncate()?

2008-12-09 Thread Henrique Machado
What ?php echo $test ? returns? 2008/12/9 Günther Theilen [EMAIL PROTECTED] Hi, I have a problem with truncate() and German umlauts (äöü). (The DB and the php code is in utf-8) $test = xäx; debug ($text-truncate($test, 9)); I would expect it to return xä... but it returns

Re: Bug in text-truncate()?

2008-12-09 Thread Günther Theilen
I use the svn trunk so I changed the .htacces file and it works fine. Thanks! Regards Guenther grigri wrote: Check your core version. TextHelper was updated to use mb_* functions in #7842. I checked with your specific example and it works fine.