If i understand the page correctly, multibyte awareness needs to be configured on the machine were php is installed. This is not really an option, as the application i am building should be portable.
Also it seems to me that str_replace() and PHP are just fine with special characters. If i create a string like "üöä" and run the str_replace() over it it works as expected. The thing is that the special characters are in some way en/decoded by cake to be stored in the database. The strange thing is that they are rendered/decoded correctly in the view. But replacing them there with str_replace() doesnt work either. It seems that e.g. the "Ü" from the model/database is not equal to the "Ü" in the php-file. Yes the php-files are encoded in UTF-8. Or should they rather be not? Thanks for patience and further help. Chris Hartjes schrieb: > 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. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
