This probably goes to the IS_URL topic... In any case, the *raw* URI you're dealing with should not have any special glyphs. I think you're referring the fact that the BROWSERS display non-ascii chars transparently in the address bar. For example:
http://sr.wikipedia.org/wiki/Никола_Тесла This is NOT what the actual URI looks like, it's just sugar for our eyes. When you have this in the address bar, the server, the browser, and everybody in between actually uses http://sr.wikipedia.org/wiki/%D0%9D%D0%B8%D0%BA%D0%BE%D0%BB%D0%B0_%D0%A2%D0%B5%D1%81%D0%BB%D0%B0 and that's probably the URI you need to store/validate/propagate. As urllib's unquote is IMHO fundamentally flawed with no chance of correction until python3000 it's tricky business to interpret URI's anyway. On Nov 27, 5:03 am, mdipierro <[EMAIL PROTECTED]> wrote: > I am not sure. This needs a lot of testing. > > On Nov 26, 10:00 pm, "jessinio liang" <[EMAIL PROTECTED]> wrote: > > > On Thu, Nov 27, 2008 at 11:55 AM, mdipierro <[EMAIL PROTECTED]> wrote: > > > > The question is: > > > > Assume a url likehttp://hostname/app/default/action/data > > > > and data is in unicode and passes validation. > > > is it safe to open(data,'r') ? > > > i change the path( string object ) to unicode before regex_url.match(path) , > > change it back utf8 after regex_url.match(path), so, it's safe to open > > function. > > > right? (^_^) > > > > On Nov 26, 9:41 pm, "jessinio liang" <[EMAIL PROTECTED]> wrote: > > > > 2008/11/27 mdipierro <[EMAIL PROTECTED]> > > > > > > Thank you Jessinio, > > > > > > could you please email me the patch as an attachment? I cannot read it > > > > > properly. > > > > > > Does anybody have any objection to this patch? > > > > > sorry , i don't know , i know it work well (^_^) > > > > > see diff file attachment > > > > > -- > > > > 身体是革命的本钱!!http://jessinio.blogspot.com > > > > > diff.log > > > > 1KViewDownload > > > -- > > 身体是革命的本钱!!http://jessinio.blogspot.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---