The function is called at the top of the multibyte file.
if (function_exists('mb_internal_encoding')) {
$encoding = Configure::read('App.encoding');
if (!empty($encoding)) {
mb_internal_encoding($encoding);
}
}
On Dec 13, 5:52 am, Brendon Gleeson <[email protected]> wrote:
> I had this wierd problem the other day. I was using mb_strtoupper()
> with on strings having unicode latin characters (french) and the
> special characters where all staying lowercase. I figured out that the
> multibyte cakephp library was only being called when I use the text
> helper? I don't use anything in the texthelper so it seems a bit of a
> waste to have to include that and the multibyte lib, just for a single
> native php function to be called (mb_internal_encoding()), so I just
> stuck it under the configuration option:
>
> define('App.encoding', 'UTF-8');
> mb_internal_encoding('UTF-8');
>
> It works now but it's a bit ugly... can anybody shed some light on
> this issue
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
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