if i do type(...) on the variables it returns 'unicode'. I'm not up on my encodings to know 100% the best way...i know that once i put the line above in that cookies and sessions work again.
On May 29, 5:05 pm, mdipierro <[email protected]> wrote: > Before I add the line I need some diagnostic. Is env['PATH_INFO'] > unicode? In this case shouldn't it be > > env['PATH_INFO'] = env['PATH_INFO'].encode('utf8') > > On May 29, 6:40 pm, howesc <[email protected]> wrote: > > > Hi all, > > > in order to use blobstore on google app engine we have to be able to > > handle redirection back from google's upload API. when we are re- > > directed back all variables come from google in unicode. > > > the fix i have is to add the following line just before the return > > from wsgiapp() in gaehandler.py (line 73): > > #HACK to deal with utf-8 encoded info when redirected to URLs from > > GAE > > env['PATH_INFO'] = str(env['PATH_INFO']) > > > 2 questions: > > - is this evil, and there is a better way to do it? > > - any objections to adding it to trunk so that next time i upgrade i > > don't loose the change again? :) > > > thanks! > > > Christian

