'Constructs a Request object from a WSGI environment.
If the charset isn\'t specified in the Content-Type header, defaults
to UTF-8.
Args:
environ: A WSGI-compliant environment dictionary.'

def __init__(self, environ):

    match = _CHARSET_RE.search(environ.get('CONTENT_TYPE', ''))
    if match:
        charset = match.group(1).lower()
    else:
        charset = 'utf-8'
    webob.Request.__init__(self, environ, charset=charset, unicode_errors='ignore', decode_param_names=True)
