But urlencode should take care of those special characters. According ot the PHP manual for urlencode():
"Returns a string in which all non-alphanumeric characters except -_. have been replaced with a percent (%) sign followed by two hex digits and spaces encoded as plus (+) signs. It is encoded the same way that the posted data from a WWW form is encoded, that is the same way as in application/x-www-form-urlencoded media type." So it's the same way as data is transferred in an HTTP post, which surely must support special characters (encoded of course). Anyway I don't want to debate the proper way of going about it; I just think it'd be useful as an option. Of course I can make the change locally, well...if I can figure out heads from tails of the script, lol, but I was suggesting it because I think it'd be a useful addition. I'm not familiar with the code base at all, so I probably won't even begin to try to make such a change in my copy. :) Brandon -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, December 28, 2006 9:56 AM To: Cake PHP Subject: Re: Suggestion about bake Brandon Olivares kirjutas:
You can just urlencode the names. I didn't say it should be the default
method, just that it should be an option. A lot of people seem to prefer doing it this way for many reasons, including SEO, not to mention it can make the URL easier to read.
Works :) but just in blinded mode and for english speaking users. Counting that usernames can only consist of "url safe" characters :) because every other language almost certainly will have some kind of spechial character in it. But you can make your change in your local copy of cake for that so the bakeing script would bake it this way. rgds --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
