Thank you Jonathan. Are you proposing inclusion in 1.56?

On Jan 22, 8:11 am, Jonathan Benn <[email protected]> wrote:
> Hi all,
>
> I've completed a preliminary version of the code, available 
> here:http://bitbucket.org/Demiurge11/patch/changeset/7719b580ce83/
>
> IS_URL basically works just like it did before, except that now you
> can optionally input a unicode string instead of a regular string. If
> you input a unicode URL, then in the return value the unicode will get
> converted into a US-ASCII equivalent according to RFC 3490.
>
> e.g.
>     http://北京.cn/
>
> Will become something like this (please note that this is not the
> correct encoding for the above characters... I haven't figured out an
> easy way yet to learn which unicode code matches a particular
> character):
>    http://xn--ob0bk18e.com/
>
> IS_URL has additional functionality for allowing unicode in the path
> or query parts of the URL.  I couldn't find any RFC that covered this,
> though, so I'm assuming that it's a de facto standard set down by
> websites like Wikipedia and/or web browsers like Firefox
>
> e.g.
> The URL:
>    http://sr.wikipedia.org/wiki/Никола_Тесла
> will be converted to:
>    http://sr.wikipedia.org/wiki/%D0%9D%D0%B8%D0%BA%D0%BE%D0%BB%D0%B0_%D0...
>
> There might be some serious bugs hidden in the new code, but all of
> the old tests are passing. Hence, if you want to try out the unicode
> features please go ahead--it should not break your old code. I am
> going on vacation for 3 weeks. When I get back I will finish the
> testing and submit the patch to the official web2py build. I will
> check out this thread again, so please feel free to submit bug reports
> here and I'll address them when I get back.
>
> Sincerely,
>
> --Jonathan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to