Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google App Engine : print "self.request.path"

When I self.response.out.write(self.request.path) the output is something like \page\cfg%27%40.

How do I print out the character instead?

like image 893
Peter Avatar asked Mar 10 '26 13:03

Peter


1 Answers

you have do something like this

import urllib2
path = self.request.path
unquoted_path=urllib2.unquote(path)
like image 93
Abdul Kader Avatar answered Mar 13 '26 15:03

Abdul Kader



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!