Skip to content

Instantly share code, notes, and snippets.

@gregglind
Created August 14, 2010 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregglind/524549 to your computer and use it in GitHub Desktop.
Save gregglind/524549 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
# -*- coding: utf8 -*-
import web
urls = (
'/test/mío','Blah',
'/test/mio','Blah',
)
app = web.application(urls, globals())
class Blah(object):
def GET(self):
web.header("Content-Type","text/html; charset=utf-8")
return "<html><body>BLAH!</body></html>"
if __name__ == "__main__":
web.config.debug = True
app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment