Sounds like the special characters you are trying to work with are multibyte characters, therefore the regular str_replace won't work on them. Take a look at this page over at www.php.net:
http://www.php.net/manual/en/ref.mbstring.php You should be able to find all the functions you need in order to replace the special characters. On 8/3/06, anarchitect <[EMAIL PROTECTED]> wrote: > > @John: Yes, i can and it works technically, as the created slug works > as expected. Yet esthetically this is not that nice: > > posts/view/%DCberschrift > > In German - and i think this counts for other languages - there are > replacements for special characters. As indicated in the code above. > Therefore it would be nice if i actually could access (find and > replace) the special characters that are entered in the form. > > @Chris: could you be a bit more specific. I guess i have no clue what > multibyte string manipulation means. > > Does anybody know how data is encoded before saved via the model in the > database and how this could be decoded to access as described above? > Thanks again. > > > > > -- Chris Hartjes "The greatest inefficiencies come from solving problems you will never have." -- Rasmus Lerdorf @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
