Quick update

By adding "args_match =r'([ㄱ-ㅣ가-힣\w@ -_=])" under BASE= dict(, I was able 
to read all unicode characters.

Hope this Regex is safe to use.

On Friday, May 6, 2016 at 3:15:38 AM UTC-4, Niphlod wrote:
>
> you need to think it through.
> web2py's defaults to have /a/c/f with a being your app, c the name of a 
> controller file and f a valid python function identifier.
>
> if you want to support /whatever you NEED to use routes.py
>
> a simple 
>
>
> routes_in = ( ('/welcome/static/$anything', '/welcome/static/$anything'), 
> ('/(?P<any>.*)', '/welcome/default/index/\g<any>'), ) 
> routes_out = ( ('/welcome/static/$anything', '/welcome/static/$anything'), 
> ('/welcome/default/index/(?P<any>.*)', '/\g<any>'), )
>
>
> will route /与 <http://localhost:8080/%E4%B8%8E> to /welcome/default/index/
> 与 <http://localhost:8080/%E4%B8%8E> . request.args won't be usable for 
> the aforementioned "bug" (or lack of feature), but request.raw_args will be 
> there for you to parse as you wish
>
> On Friday, May 6, 2016 at 3:02:02 AM UTC+2, Kenneth wrote:
>>
>> Just filed an issue. thank you, Leonel.
>>
>> Is there any interim solution to this problem? 
>>
>> On Wednesday, May 4, 2016 at 2:31:17 PM UTC-4, Leonel Câmara wrote:
>>>
>>> For functions, specially since in python 2 the identifiers must be 
>>> ascii. If percent encoded args don't work then that's actually a 
>>> bug/missing feature of web2py which doesn't unquote args. Please file an 
>>> issue in github so the devs get properly motivated to close it. In the 
>>> meantime you will have to use request.vars to put stuff.
>>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to