def get_by_class(self, context, quota_class, resource):

        return db.quota_class_get(context, quota_class, resource)
Try to turn a string into utf-8 if possible.
dataset/ETHPy150Open openstack/nova/nova/quota.py/DbQuotaDriver.get_by_class--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/utils.py/utf8