'Return a new environ dict targeting the given wsgi.version'

def get_environ(self):

    req = self.req
    env_10 = WSGIGateway_10.get_environ(self)
    env = env_10.copy()
    env['wsgi.version'] = ('u', 0)
    env.setdefault('wsgi.url_encoding', 'utf-8')
    try:
        env['PATH_INFO'] = req.path.decode(env['wsgi.url_encoding'])
        env['QUERY_STRING'] = req.qs.decode(env['wsgi.url_encoding'])
    except UnicodeDecodeError:
        env['wsgi.url_encoding'] = 'ISO-8859-1'
        env['PATH_INFO'] = env_10['PATH_INFO']
        env['QUERY_STRING'] = env_10['QUERY_STRING']
    return env
