My app is getting errors when routing custom profile URLs with non- english characters. Here's a sample URL:
2011-12-18 23:07:14.292 /profile/carlos_alvarez%20el %C3%B3segui_9w5Z1HdEW 500 53ms 0kb Mozilla/5.0 (compatible; Googlebot/ 2.1; +http://www.google.com/bot.html) 173.245.56.25 - - [18/Dec/2011:23:07:14 -0800] "GET /profile/ carlos_alvarez%20el%C3%B3segui_9w5Z1HdEW HTTP/1.1" 500 0 - "Mozilla/ 5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" "www.cvstash.com" ms=54 cpu_ms=23 api_cpu_ms=0 cpm_usd=0.000699 instance=00c61b117c317501895969fe51d900f96cbb1f Here's a sample log: <type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xc3 in position 26: ordinal not in range(128) Traceback (most recent call last): File "/base/data/home/apps/cvstash/1.354701965012421390/ gaehandler.py", line 110, in main run_wsgi_app(wsgiapp) File "/base/python_runtime/python_lib/versions/1/google/appengine/ ext/webapp/util.py", line 98, in run_wsgi_app run_bare_wsgi_app(add_wsgi_middleware(application)) File "/base/python_runtime/python_lib/versions/1/google/appengine/ ext/webapp/util.py", line 118, in run_bare_wsgi_app for data in result: File "/base/python_runtime/python_lib/versions/1/google/appengine/ ext/appstats/recording.py", line 926, in appstats_wsgi_wrapper result = app(environ, appstats_start_response) File "/base/data/home/apps/cvstash/1.354701965012421390/ gaehandler.py", line 88, in wsgiapp env['PATH_INFO'] = env['PATH_INFO'].encode('utf8') It seems that the error is coming from gaehandler.py. Any ideas to get around this?