Chinese characters cannot be used in URL unfortunately, they are not ASCII compatible obviously. I had some similar requests from one of my customer. We worked on a "translation" chinese characters <-> pinying to make it works but finally the customer change is mind and we did not finish the plugin. Anyway, it is a quite heavy process to do on the fly.
On May 17, 2:30 am, Gábor Fási <[email protected]> wrote: > AFAIK the chinese characters get encoded in some way, so they also > contain dashes, and \w+ doesn't match then. Try .+ there first, if it > works that way then the regex is the problem. > Also, the \w is locale-specific, maybe if you set php to use then > chinese locale, your current regexp will work as well. > > 2009/5/16 xhe <[email protected]>: > > > > > Hi, > > > Don't know if anyone of you ever met this situation before. I want to > > use nickname of user in the URL, so that system will retrieve their > > info to update or view > > > This is what I used in routing, > > > user: > > class: sfPropelRouteCollection > > options: { model: Users, column: nick_name, > > prefix_path: /:sf_culture/user, method: retrieveByNickName } > > requirements: { nick_name: \w+ } > > > The actual link is > > >http://localhost:81/frontend_dev.php/en/user/用户名/edit > > > Here I used Chinese characters in the link > > > They I always got error > > > Action "en/user" does not exist. > > > But If I use english username, then it works fine. > > > So why I can not use Chinese characters in the URL, and why symfony > > can not recognize the Chinese characters in the URL? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" 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/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
