Thursday, February 26, 2009

Re: multibyte support in slug?

Well, you could re-write their function to fit your needs.

Cheers,
Faifas


On Thu, Feb 26, 2009 at 01:02, kryo <kryo2k@gmail.com> wrote:

Hello KoPanda,

I'm wondering if you were able to find the reason this error is
occuring? I am not using CakePHP, but I have a similar problem using
the mb_ereg_replace function, which returns the exact same error in my
case.

thanks,

-k

On Jan 5, 3:24 am, KoPanda <kopa...@gmail.com> wrote:
> i'm working on a website in chinese with tags. i'd like to generate
> clean urls in /posts/tag/飲食. i also want to save the tag as slug. i
> did changed some codes to cater multibyte support in the
> Inflector::slug() of cakephp 1.2 RC3 and it worked. but the same
> approach doesn't work for 1.2 final and cake gives me this error.
>
> Warning (2): mb_ereg_replace() [function.mb-ereg-replace]: mbregex
> compile err: target of repeat operator is not specified
>
> and the result is just blank no matter what chinese text i input. does
> anybody have experience with utf8 multibyte using Inflector class? i
> noticed that there is Multibyte class in cake but i don't know how to
> utilize it.




--~--~---------~--~----~------------~-------~--~----~
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 cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: