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 these lines to your webroot/.htaccess file: php_value mbstring.internal_encoding UTF-8 php_value default_charset UTF-8 php_value mbstring.detect_order UTF-8 php_value mbstring.func_overload 7 This will overload string functions (strlen, substr, ...) to use the mb_* versions transparently. hth grigri On Dec 9, 12:06 pm, Günther Theilen <[EMAIL PROTECTED]> wrote: > Hi, > > I have a problem with truncate() and German umlauts (äöü). > (The DB and the php code is in utf-8) > > $test = "xxxxxäxxxxx"; > debug ($text->truncate($test, 9)); > > I would expect it to return > xxxxxä... > but it returns > xxxxx?... > > Bug or feature? > > Regards > Guenther --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---