AFAIK, Chinese characters can be used in the route, at least as one of the parameters. You can check this out:
http://www.rsywx.net/readings/. On May 18, 7:55 am, Frank He <hexuf...@gmail.com> wrote: > I used Gabor's solution, just change the requirement in the routing.yml, > change from \w+ to .+, then it works like a charm! > I am using IE7, FF browser. > > On Sun, May 17, 2009 at 7:53 PM, gestadieu <gestad...@gmail.com> wrote: > > > 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 <maerl...@gmail.com> 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 <hexuf...@gmail.com>: > > > > > 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<http://localhost:81/frontend_dev.php/en/user/%E7%94%A8%E6%88%B7%E5%90...> > > > > > 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---