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 you
Thank you, Niphlod.
I just had to spin my head for all day today and I figured that
- I was using parameter-based routes and didn't know that I had to use
pattern-based routes to use routes_in and routes_out. No-mixing two
different routes.
- I couldn't activate request.raw_args with my parame
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/$any
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 bu
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 h
Hi Niphld,
Do I need to configure "routes.py" to accept percent-encoded function? is
it "args_match" that I need to configure?
Just tried to pass encoded string "%ED%95%9C%EA%B8%80" as argument, I am
getting "Invalid request".
Thank you.
On Wednesday, May 4, 2016 at 8:09:22 AM UTC-4, Niphlod
BTW: you NEED to get your hands dirty with routes.py because a
percent-encoded fragment won't ever be mapped to a function or a controller.
On Wednesday, May 4, 2016 at 1:55:53 PM UTC+2, Leonel Câmara wrote:
>
> I don't think that's possible, they need to come pre-encoded, don't worry
> the brow
I don't think that's possible, they need to come pre-encoded, don't worry
the browser will show the unicode characters in the adress bar and not
those ugly percents.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- http
Hi Leonel,
Thank you for your quick reply.
If that is the case, is it possible to encode the unicode URLs right after
it hits the server? So, it can be redirected to proper URL after the
incoming url is encoded in percent.
Best,
On Tuesday, May 3, 2016 at 10:15:36 PM UTC-4, Leonel Câmara wro
Unicode characters are not valid in URLs you need to percent encode them.
--
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 becaus
10 matches
Mail list logo