

def decode_argument(self, value, name=None):
    'Decodes an argument from the request.\n\n        The argument has been percent-decoded and is now a byte string.\n        By default, this method decodes the argument as utf-8 and returns\n        a unicode string, but this may be overridden in subclasses.\n\n        This method is used as a filter for both `get_argument()` and for\n        values extracted from the url and passed to `get()`/`post()`/etc.\n\n        The name of the argument is provided if known, but may be None\n        (e.g. for unnamed groups in the url regex).\n        '
    try:
        return _unicode(value)
    except UnicodeDecodeError:
        raise HTTPError(400, ('Invalid unicode in %s: %r' % ((name or 'url'), value[:40])))

dataset/ETHPy150Open RobotWebTools/rosbridge_suite/rosbridge_server/src/tornado/web.py RequestHandler.decode_argument/original