def _decode_data(self, data, charset):
        """ Decode string data.

        :returns: unicode string
        """

        try:
            return smart_unicode(data, charset)
        except __HOLE__:
            raise errors.BadRequest('wrong charset')
dataset/ETHPy150Open wuher/devil/devil/datamapper.py/DataMapper._decode_data