Encode URLs into ASCII.
authorW. Trevor King <wking@drexel.edu>
Wed, 21 Jul 2010 19:12:19 +0000 (15:12 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 21 Jul 2010 20:52:32 +0000 (16:52 -0400)
commit3d90ba0a12f7aebfb20cccefa54f832b52c0aad2
treeb05e582209d1b01345d6a9434374a89a6d705779
parent91240f7518f59423b5d2fa7af87a2ae335a88971
Encode URLs into ASCII.

URL encoding is undefined.  See
  http://www.cherrypy.org/ticket/825
  http://www.w3schools.com/TAGS/ref_urlencode.asp
  http://www.rfc-editor.org/rfc/rfc2396.txt
Therefore, safe URLs should be in a subset of ASCII.  We convert our
URLs to UTF-8, and then use urllib.quote_plus() to escape the UTF-8
into ASCII.
cookbook/cookbook.py
cookbook/server.py
cookbook/template/recipes.html