Hi pr3d4t0r and Sylvain,

Thanks for the info. I'm now using the urllib.quote/unquote functions
as a workaround. I was just hoping I could having nice looking
sentences in my URLs like those supported by Wikimedia software. Maybe
someday.

Thanks again,
Casey

On Oct 24, 2:19 am, pr3d4t0r <[EMAIL PROTECTED]> wrote:
> On Oct 23, 11:17 pm, Casey Dwyer <[EMAIL PROTECTED]> wrote:
>
>
>
> > Consider the following code:
>
> > from google.appengine.ext import webapp
> > from google.appengine.ext.webapp.util import run_wsgi_app
>
> > class MainPage(webapp.RequestHandler):
> >   def get(self, filename):
> >     self.response.out.write(filename)
>
> > def main():
> >   application = webapp.WSGIApplication([(r'/bug/(.*)', MainPage)],
> > debug=True)
> >   run_wsgi_app(application)
>
> > if __name__ == '__main__':
> >   main()
>
> > EOF
>
> > I've uploaded this tohttp://kc.appspot.com/bug/.
>
> >http://kc.appspot.com/bug/Helloproducesthe text "Hello" as expected.
>
> >http://kc.appspot.com/bug/semi;colonproducesthe text "semi" but on
> > localhost it produces "semi%3Bcolon" as expected.
>
> > Could somebody please explain this bug to me so I can file an issue
> > report? Also, could somebody provide a workaround?
>
> Hi Casey,
>
> Punctuation in URLs or URIs is almost always a bad, bad, bad idea.
> Always approach situations like this by explicitly URL-encoding the
> data so that semicolons, non-ASCII characters, and other symbols are
> URL-encoded and can be safely transmitted when a client consumes the
> URL or URI.
>
> Learn more about URL encoding here:http://www.w3schools.com/
>
> Here are some infos about how to do this in 
> Python:http://www.python.org/doc/2.5.2/lib/module-urllib.html
>
> Cheers,
>
> pr3d4t0rhttp://www.istheserverup.comhttp://www.teslatestament.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to